mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update demo
This commit is contained in:
parent
ad3c82d5ad
commit
c6ecc419db
@ -11,6 +11,7 @@ namespace OrmTest
|
|||||||
[SugarTable("MyTable02")]
|
[SugarTable("MyTable02")]
|
||||||
public class MyTable02_NS
|
public class MyTable02_NS
|
||||||
{
|
{
|
||||||
|
//也可以用InsertServerTime =true
|
||||||
[SugarColumn(IsPrimaryKey = true,SqlParameterDbType =typeof(DateTime19))]
|
[SugarColumn(IsPrimaryKey = true,SqlParameterDbType =typeof(DateTime19))]
|
||||||
public DateTime ts { get; set; }
|
public DateTime ts { get; set; }
|
||||||
public float current { get; set; }
|
public float current { get; set; }
|
||||||
@ -31,6 +32,7 @@ namespace OrmTest
|
|||||||
[SugarTable("MyTable02")]
|
[SugarTable("MyTable02")]
|
||||||
public class MyTable02_US
|
public class MyTable02_US
|
||||||
{
|
{
|
||||||
|
//也可以用InsertServerTime =true
|
||||||
[SugarColumn(IsPrimaryKey = true, SqlParameterDbType = typeof(DateTime16))]
|
[SugarColumn(IsPrimaryKey = true, SqlParameterDbType = typeof(DateTime16))]
|
||||||
public DateTime ts { get; set; }
|
public DateTime ts { get; set; }
|
||||||
public float current { get; set; }
|
public float current { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user