File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
using Chloe . Annotations ;
2
2
using Chloe . Entity ;
3
3
using Chloe . Oracle ;
4
+ using Chloe . SqlServer ;
4
5
using System ;
5
6
using System . Collections . Generic ;
6
7
using System . Data ;
@@ -41,6 +42,10 @@ public class User : UserLite
41
42
public int ? Age { get ; set ; }
42
43
public int ? CityId { get ; set ; }
43
44
public DateTime ? OpTime { get ; set ; }
45
+
46
+ /* Marks the column is timestamp type(sqlserver only) */
47
+ //[Chloe.SqlServer.Annotations.TimestampAttribute]
48
+ //public Byte[] RowVersion { get; set; }
44
49
}
45
50
46
51
public class UserMapBase < TUser > : EntityTypeBuilder < TUser > where TUser : UserLite
@@ -58,6 +63,9 @@ public UserMap()
58
63
this . MapTo ( "Users" ) ;
59
64
this . Ignore ( a => a . NotMapped ) ;
60
65
this . Property ( a => a . Gender ) . HasDbType ( DbType . Int32 ) ;
66
+
67
+ /* Marks the column is timestamp type(sqlserver only) */
68
+ //this.Property(a => a.RowVersion).IsTimestamp();
61
69
}
62
70
}
63
71
You can’t perform that action at this time.
0 commit comments