mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
test record class
This commit is contained in:
parent
2cac4c3094
commit
dad05d83c9
@ -10,10 +10,23 @@ namespace FreeSql.Tests
|
||||
{
|
||||
public class UnitTest4
|
||||
{
|
||||
|
||||
public record ts_record(DateTime Date, int TemperatureC, int TemperatureF, string Summary)
|
||||
{
|
||||
public ts_record parent { get; set; }
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LeftJoinNull01()
|
||||
{
|
||||
var fsql = g.sqlite;
|
||||
|
||||
fsql.Delete<ts_record>().Where("1=1").ExecuteAffrows();
|
||||
fsql.Insert(new ts_record(DateTime.Now, 1, 2, "123")).ExecuteAffrows();
|
||||
var fores = fsql.Select<ts_record>().ToList();
|
||||
|
||||
|
||||
|
||||
fsql.Delete<leftjoin_null01>().Where("1=1").ExecuteAffrows();
|
||||
fsql.Delete<leftjoin_null02>().Where("1=1").ExecuteAffrows();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user