mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Add demo
This commit is contained in:
@@ -37,6 +37,8 @@ namespace OrmTest
|
||||
var list = db.Queryable<CodeFirstTable1>().ToList();
|
||||
db.CodeFirst.InitTables<CodeFirstLong>();
|
||||
var tableInfo=db.DbMaintenance.GetColumnInfosByTableName("CodeFirstLong", false);
|
||||
db.CodeFirst.InitTables<CodeFirstadfafa>();
|
||||
db.Insertable(new CodeFirstadfafa() { index = "a" }).ExecuteCommand();
|
||||
db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
|
||||
{
|
||||
IsAutoToUpper = false
|
||||
@@ -55,6 +57,10 @@ namespace OrmTest
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
public class CodeFirstadfafa
|
||||
{
|
||||
public string index { get; set; }
|
||||
}
|
||||
public class CodeFirstNoUpper
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey =true)]
|
||||
|
Reference in New Issue
Block a user