public void Insert_Maps_Generated_Primary_Key() { var entity = new WithIntPK(); using (var dataProvider = new SQLite3DataProvider("Data Source=:memory:;Mode=Memory")) { var schema = new SchemaBuilder() .Define <WithIntPK>() .Build(); var table = new EntityTable <WithIntPK>(schema, dataProvider); var sqlEntityStore = new SqlEntityStore <WithIntPK>(schema, dataProvider); table.CreateTable().Execute(); sqlEntityStore.Insert(entity).Execute(); } Assert.AreNotEqual(0, entity.Id); }