Browse Source

Update demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
d4a70531d7
  1. 2
      Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

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

@ -19,7 +19,7 @@ namespace OrmTest
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true
});
db.DbMaintenance.CreateDatabase(@"c:\");
db.DbMaintenance.CreateDatabase();
db.CodeFirst.InitTables(typeof(CodeFirstTable1));//Create CodeFirstTable1
db.Insertable(new CodeFirstTable1() { Name = "a", Text="a" }).ExecuteCommand();
var list = db.Queryable<CodeFirstTable1>().ToList();

Loading…
Cancel
Save