mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Add demo
This commit is contained in:
@@ -123,9 +123,21 @@ static void ServerTest()
|
||||
sqlugar.Insertable(new Unitadfafa() { Id =1 }).ExecuteCommand();
|
||||
var list2=sqlugar.Queryable<Unitadfafa>().ToList();
|
||||
|
||||
sqlugar.CodeFirst.InitTables<UnitDatezaaaa>();
|
||||
|
||||
var xx = sqlugar.Fastest<UnitDatezaaaa>().BulkCopy(new List<UnitDatezaaaa>() { (new UnitDatezaaaa()
|
||||
{
|
||||
|
||||
} )});
|
||||
var xx2 = sqlugar.Fastest<UnitDatezaaaa>().BulkCopy(new List<UnitDatezaaaa>() { (new UnitDatezaaaa()
|
||||
{
|
||||
timeOnly=TimeOnly.FromDateTime(DateTime.Now),
|
||||
dateOnly=DateOnly.FromDateTime(DateTime.Now)
|
||||
} )});
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void SqliteTest()
|
||||
{
|
||||
var sqlugar = new SqlSugarClient(new ConnectionConfig()
|
||||
@@ -187,6 +199,13 @@ public class UnitDatez211afa
|
||||
public TimeOnly timeOnly { get; set; }
|
||||
public DateOnly dateOnly { get; set; }
|
||||
}
|
||||
public class UnitDatezaaaa
|
||||
{
|
||||
[SugarColumn(IsNullable =true)]
|
||||
public TimeOnly? timeOnly { get; set; }
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateOnly? dateOnly { get; set; }
|
||||
}
|
||||
public class UnitDatez211afa2222
|
||||
{
|
||||
[SugarColumn(IsNullable =true)]
|
||||
|
Reference in New Issue
Block a user