Browse Source

Update demo

pull/6/head
sunkaixuna 3 years ago
parent
commit
59d7825048
  1. 4
      Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs

4
Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs

@ -218,7 +218,7 @@ namespace OrmTest
} }
} }
}) })
.ExecuteReturnPrimaryKey(); .ExecuteCommand();
var list = db.Queryable<Country>() var list = db.Queryable<Country>()
.Mapper(it => it.Provinces, it => it.Provinces.First().CountryId) .Mapper(it => it.Provinces, it => it.Provinces.First().CountryId)
@ -298,7 +298,7 @@ namespace OrmTest
} }
} }
}) })
.ExecuteReturnPrimaryKey(); .ExecuteCommand();
var list = db.Queryable<Country1>() var list = db.Queryable<Country1>()
.Mapper(it => it.Provinces, it => it.Provinces.First().CountryId) .Mapper(it => it.Provinces, it => it.Provinces.First().CountryId)

Loading…
Cancel
Save