Browse Source

Add demo

pull/40/head
sunkaixuan 1 year ago
parent
commit
5dccf3d74c
  1. 1
      Src/Asp.Net/MySqlTest/Demo/DemoE_CodeFirst.cs

1
Src/Asp.Net/MySqlTest/Demo/DemoE_CodeFirst.cs

@ -28,6 +28,7 @@ namespace OrmTest
db.CodeFirst.InitTables<UnitByte1>();
db.CodeFirst.InitTables<CodeFirstGuid>();
db.Insertable(new CodeFirstGuid() { Id = Guid.NewGuid() }).ExecuteCommand();
var ids=db.Queryable<CodeFirstGuid>().Select(x => x.Id).ToList();
Console.WriteLine("#### CodeFirst end ####");
}
}

Loading…
Cancel
Save