Browse Source

Update Demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
84e9227bea
  1. 3
      Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

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

@ -10,6 +10,8 @@ namespace OrmTest
{
public static void Init()
{
Console.WriteLine("");
Console.WriteLine("#### CodeFirst Start ####");
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
{
DbType = DbType.SqlServer,
@ -19,6 +21,7 @@ namespace OrmTest
});
db.CodeFirst.InitTables(typeof(CodeFirstTable1));//Create CodeFirstTable1
Console.WriteLine("#### CodeFirst end ####");
}
}

Loading…
Cancel
Save