Skip to content

Commit 356ed1b

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
GH-5350: Rename Entity<T> to DataEntity<T> to address Deepsource issue.
1 parent 303f785 commit 356ed1b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/NHibernate.Test/Async/NHSpecificTest/GH3530/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by AsyncGenerator.
44
//
@@ -128,7 +128,7 @@ private string GetQualifiedName(string catalog, string schema, string name)
128128

129129
private async Task PerformTestAsync<T, U>(CultureInfo from, CultureInfo to, T expectedValue, Action<T, T> assert, CancellationToken cancellationToken = default(CancellationToken))
130130
where T : struct
131-
where U : Entity<T>, new()
131+
where U : DataEntity<T>, new()
132132
{
133133
object id;
134134

src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public abstract class Entity
1212
public virtual Guid Id { get; set; }
1313
}
1414

15-
public abstract class Entity<T>:Entity where T : struct
15+
public abstract class DataEntity<T>:Entity where T : struct
1616
{
1717
public virtual T DataValue { get; set; }
1818
}
1919

20-
public class IntegerEntity : Entity<int> { }
21-
public class DateTimeEntity : Entity<DateTime> { }
20+
public class IntegerEntity : DataEntity<int> { }
21+
public class DateTimeEntity : DataEntity<DateTime> { }
2222

23-
public class DoubleEntity : Entity<double> { }
24-
public class DecimalEntity : Entity<decimal> { }
25-
public class NHDateTimeEntity : Entity<DateTime> { }
23+
public class DoubleEntity : DataEntity<double> { }
24+
public class DecimalEntity : DataEntity<decimal> { }
25+
public class NHDateTimeEntity : DataEntity<DateTime> { }
2626
}

src/NHibernate.Test/NHSpecificTest/GH3530/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private string GetQualifiedName(string catalog, string schema, string name)
116116

117117
private void PerformTest<T, U>(CultureInfo from, CultureInfo to, T expectedValue, Action<T, T> assert)
118118
where T : struct
119-
where U : Entity<T>, new()
119+
where U : DataEntity<T>, new()
120120
{
121121
object id;
122122

0 commit comments

Comments
 (0)