This commit is contained in:
sunkaixuan
2017-09-05 11:12:46 +08:00
parent a3f791db4b
commit 305de36d60
3 changed files with 224 additions and 64 deletions

View File

@@ -26,6 +26,15 @@ namespace OrmTest.Demo
StoredProcedure();
Enum();
Simple();
Async();
}
private static void Async()
{
var db = GetInstance();
var list= db.Queryable<Student>().Where(it => it.Id == 1).SingleAsync();
list.Start();
list.Wait();
}
private static void Simple()