This commit is contained in:
sunkaixuan 2023-01-15 17:23:05 +08:00
parent e4d13265c0
commit dfa7e780c9

View File

@ -68,9 +68,16 @@ namespace OrmTest
{
Name = "a"
}).Where(it => it.Id != null).ExecuteCommand();
db.CodeFirst.InitTables<CodeFirstChartest>();
db.Queryable<CodeFirstChartest>().Where(it => it.Test == 's').ToList();
Console.WriteLine("#### CodeFirst end ####");
}
}
public class CodeFirstChartest
{
[SugarColumn(ColumnDataType ="varchar(1)")]
public char Test { get; set; }
}
[SugarTable(null,"备注表")]
public class CodeFirstNoUpper
{