mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update demo
This commit is contained in:
parent
0a3eeded81
commit
c1af1be02b
@ -79,7 +79,7 @@ static void ServerTest()
|
|||||||
var sqlugar = new SqlSugarClient(new ConnectionConfig()
|
var sqlugar = new SqlSugarClient(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.SqlServer,
|
DbType = DbType.SqlServer,
|
||||||
ConnectionString = "SERVER=.;uid=sa;pwd=sasa;database=SqlSugar4Text4"
|
ConnectionString = "SERVER=.;uid=sa;pwd=sasa;database=SqlSugar4Text4;Encrypt=True;TrustServerCertificate=True"
|
||||||
},
|
},
|
||||||
it =>
|
it =>
|
||||||
{
|
{
|
||||||
@ -181,6 +181,9 @@ static void ServerTest()
|
|||||||
left.CustNum,
|
left.CustNum,
|
||||||
ViewWorker = right
|
ViewWorker = right
|
||||||
}).First();
|
}).First();
|
||||||
|
sqlugar.CodeFirst.InitTables<Unitadfadfassyss>();
|
||||||
|
sqlugar.Storageable(new Unitadfadfassyss() { Code = "a", dateOnly = DateOnly.Parse("2020-1-1"), Name = "a" })
|
||||||
|
.WhereColumns(it=>new { it.Code,it.dateOnly }).ExecuteCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -292,3 +295,9 @@ public class UnitDatez211afa2222
|
|||||||
[SugarColumn(IsNullable = true)]
|
[SugarColumn(IsNullable = true)]
|
||||||
public DateOnly? dateOnly { get; set; }
|
public DateOnly? dateOnly { get; set; }
|
||||||
}
|
}
|
||||||
|
public class Unitadfadfassyss
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Code { get; set; }
|
||||||
|
public DateOnly? dateOnly { get; set; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user