mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-12 00:50:59 +08:00
Merge branch 'master' of https://github.com/dotnetcore/FreeSql.wiki
@@ -76,7 +76,7 @@ When inserting large quantities of data, the internal logic is divided and execu
|
||||
|
||||
After the execution of the split, when the external transaction is not provided, the internal transaction is opened to achieve insertion integrity. You can also set appropriate values through `BatchOptions`.
|
||||
|
||||
FreeSql adapts to the use of parameterization and non-parameterization of each data type. It is recommended to turn off the parameterization function for batch insertion and use `.NonoParameter()` to execute it.
|
||||
FreeSql adapts to the use of parameterization and non-parameterization of each data type. It is recommended to turn off the parameterization function for batch insertion and use `.NoneParameter()` to execute it.
|
||||
|
||||
## 3. ExecuteSqlBulkCopy, ExecutePgCopy, ExecuteMySqlBulkCopy and ExecuteOracleBulkCopy
|
||||
|
||||
|
||||
2
常见问题.md
2
常见问题.md
@@ -68,7 +68,7 @@ fsql.Select<T>().WithSql(sql).Page(1, 10).ToList();
|
||||
|
||||
### 8、错误:ObjectPool.Get 获取超时(10秒)。
|
||||
|
||||
[https://github.com/dotnetcore/FreeSql/discussions/1079](https://github.com/dotnetcore/FreeSql/discussions/1079)
|
||||
[https://github.com/dotnetcore/FreeSql/discussions/1081](https://github.com/dotnetcore/FreeSql/discussions/1081)
|
||||
|
||||
---
|
||||
|
||||
|
||||
2
添加.md
2
添加.md
@@ -74,7 +74,7 @@ var t2 = fsql.Insert(items).ExecuteAffrows();
|
||||
|
||||
分割执行后,当外部未提供事务时,内部自开事务,实现插入完整性。也可以通过 BatchOptions 设置合适的值。
|
||||
|
||||
FreeSql 适配了每一种数据类型参数化,和不参数化的使用。批量插入建议关闭参数化功能,使用 .NonoParameter() 进行执行。
|
||||
FreeSql 适配了每一种数据类型参数化,和不参数化的使用。批量插入建议关闭参数化功能,使用 .NoneParameter() 进行执行。
|
||||
|
||||
## 3、ExecuteSqlBulkCopy、ExecutePgCopy、ExecuteMySqlBulkCopy、ExecuteOracleBulkCopy
|
||||
|
||||
|
||||
4
骚操作.md
4
骚操作.md
@@ -22,7 +22,7 @@ INSERT INTO `tb_topic`(`Title`) VALUES('Title_1')
|
||||
|
||||
在 new FreeSqlBuilder().UseNoneParameter(true) 可以全局设置。
|
||||
|
||||
在 单次 ISelect、IInsert、IDelete、IUpdate 上使用 NoneParameter() 设置单次生效。
|
||||
在 单次 IInsert、IUpdate 上使用 NoneParameter() 设置单次生效。
|
||||
|
||||
---
|
||||
|
||||
@@ -429,7 +429,7 @@ fsql.Aop.CurdAfter += (s, e) => {
|
||||
fsql.Aop.AuditValue += (s, e) => {
|
||||
if (e.Column.CsType == typeof(long) &&
|
||||
e.Property.GetCustomAttribute<SnowflakeAttribute>(false) != null &&
|
||||
e.Value?.ToString() == 0)
|
||||
e.Value?.ToString() == "0")
|
||||
e.Value = new Snowflake().GetId();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user