This commit is contained in:
sunkaixuan
2023-06-15 13:18:03 +08:00
parent 2ff0ab993d
commit 91cd05bd8e
2 changed files with 7 additions and 1 deletions

View File

@@ -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)]