Browse Source

Add unit test

pull/40/head
sunkaixuan 1 year ago
parent
commit
7fa4fc2b9d
  1. 7
      Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

7
Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

@ -69,9 +69,16 @@ namespace OrmTest
db.CodeFirst.InitTables<Unittest1011, Unittest22221>();
db.Insertable(new Unittest1011() { name = "a" }).ExecuteCommand();
db.Insertable(new Unittest22221() { name = "a" }).ExecuteCommand();
db.CodeFirst.InitTables<Unitrtqqqadfa>();
Console.WriteLine("#### CodeFirst end ####");
}
}
[SugarTable("dbo.Unitrtqqqadfa")]
public class Unitrtqqqadfa
{
[SugarColumn(ColumnDescription ="aa")]
public string Name { get; set; }
}
public class Unittest22221
{
[SugarColumn(DefaultValue = " newsequentialid()")]

Loading…
Cancel
Save