mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update DuckDb
This commit is contained in:
parent
4876fc8f9d
commit
281cd86f2f
@ -42,7 +42,6 @@ namespace OrmTest
|
||||
new StudentWithSnowflake() { Name = "name",Id=SnowFlakeSingle.Instance.NextId() },
|
||||
new StudentWithSnowflake() { Name = "name",Id=SnowFlakeSingle.Instance.NextId()}
|
||||
};
|
||||
db.Fastest<StudentWithSnowflake>().BulkCopy(listLong);
|
||||
}
|
||||
|
||||
// 实体类:带自增主键(Entity class: With auto-increment primary key)
|
||||
|
@ -55,9 +55,6 @@ namespace OrmTest
|
||||
.IgnoreColumns(ignoreAllNullColumns: true, ignoreAllDefaultValue:true)
|
||||
.ExecuteCommand();
|
||||
|
||||
// 使用最快的方式批量更新实体对象列表(Bulk update a list of entity objects using the fastest method)
|
||||
var result8 = db.Fastest<StudentWithSnowflake>().BulkUpdate(updateObjs);
|
||||
|
||||
/***************************表达式更新 (Expression Update)***************************/
|
||||
|
||||
// 使用表达式更新实体对象的指定列(Update specific columns of the entity object using expressions)
|
||||
|
@ -4,7 +4,19 @@ _1_CodeFirst.Init();
|
||||
_2_DbFirst.Init();
|
||||
_3_EasyQuery.Init();
|
||||
_4_JoinQuery.Init();
|
||||
_4_Subquery.Init();
|
||||
_5_PageQuery.Init();
|
||||
_6_NavQuery.Init();
|
||||
_7_GroupQuery.Init();
|
||||
_8_Insert.Init();
|
||||
_9_Update.Init();
|
||||
_a1_Delete.Init();
|
||||
_a2_Sql.Init();
|
||||
_a3_Merge.Init();
|
||||
//_a4_SplitTable.Init();
|
||||
_a5_GridSave.Init();
|
||||
_a6_SqlPage.Init();
|
||||
_a7_JsonType.Init();
|
||||
_a8_SelectReturnType.Init();
|
||||
Console.WriteLine("DEMO执行完成");
|
||||
Console.Read();
|
||||
|
@ -29,14 +29,6 @@ namespace OrmTest
|
||||
// 中文备注:带异常处理的分页插入或更新操作,每页1000条记录
|
||||
// English Comment: Perform insert or update operation with exception handling and paging, 1000 records per page
|
||||
db.Storageable(list).PageSize(1000, exrows => { }).ExecuteCommand();
|
||||
|
||||
// 中文备注:使用Fastest方式批量合并数据(用于大数据处理)
|
||||
// English Comment: Merge data using Fastest method (for big data processing)
|
||||
db.Fastest<Order>().BulkMerge(list);
|
||||
|
||||
// 中文备注:分页使用Fastest方式批量合并数据,每页100000条记录(用于大数据处理)
|
||||
// English Comment: Merge data using Fastest method with paging, 100000 records per page (for big data processing)
|
||||
db.Fastest<Order>().PageSize(100000).BulkMerge(list);
|
||||
}
|
||||
|
||||
[SqlSugar.SugarTable("Order_a3")]
|
||||
|
@ -40,7 +40,7 @@ namespace OrmTest
|
||||
var listDtoAutoMap = db.Queryable<Student>()
|
||||
.Select(it => new StudentDto
|
||||
{
|
||||
AppendColumn = 100 // 手动指定一列在自动映射 (Manually specify a column in automatic mapping)
|
||||
AppendColumn =Convert.ToInt32( 100) // 手动指定一列在自动映射 (Manually specify a column in automatic mapping)
|
||||
},
|
||||
true) // true 表示开启自动映射 (true indicates enabling automatic mapping)
|
||||
.ToList();
|
||||
|
Loading…
Reference in New Issue
Block a user