Add unit test

This commit is contained in:
sunkaixuan 2023-02-25 15:40:39 +08:00
parent 17bffcfb65
commit fcfe88799b

View File

@ -70,9 +70,16 @@ namespace OrmTest
}).Where(it => it.Id != null).ExecuteCommand();
db.CodeFirst.InitTables<CodeFirstChartest>();
db.Queryable<CodeFirstChartest>().Where(it => it.Test == 's').ToList();
db.CodeFirst.InitTables<CodeFloatddfa1a1>();
db.Insertable(new CodeFloatddfa1a1() { xx = (float)11.1 }).ExecuteCommand();
var list7 = db.Queryable<CodeFloatddfa1a1>().ToList();
Console.WriteLine("#### CodeFirst end ####");
}
}
public class CodeFloatddfa1a1
{
public float xx { get; set; }
}
public class CodeFirstChartest
{
[SugarColumn(ColumnDataType ="varchar(1)")]