Update demo

This commit is contained in:
sunkaixuan 2019-06-02 09:57:09 +08:00
parent 1804ac5c20
commit a4cac0cf46

View File

@ -142,10 +142,10 @@ namespace OrmTest
}
}
});
db.CodeFirst.InitTables<MyCustomAttributeTable>();//Create Table
db.CodeFirst.InitTables<AttributeTable>();//Create Table
db.Insertable(new MyCustomAttributeTable() { Id = Guid.NewGuid().ToString(), Name = "Name" }).ExecuteCommand();
var list = db.Queryable<MyCustomAttributeTable>().ToList();
db.Insertable(new AttributeTable() { Id = Guid.NewGuid().ToString(), Name = "Name" }).ExecuteCommand();
var list = db.Queryable<AttributeTable>().ToList();
Console.WriteLine("#### Custom Attribute End ####");
}