mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 自动分表 IAsTable.SetDefaultAllTables 拦截未使用 where 条件的场景;修复 自动分表 IAsTable.SetTableName 位置 bug;
This commit is contained in:
@ -618,7 +618,12 @@ namespace base_entity
|
||||
|
||||
fsql.CodeFirst.GetTableByEntity(typeof(AsTableLog)).AsTableImpl
|
||||
.SetTableName(0, "AsTableLog1")
|
||||
.SetTableName(1, "AsTableLog2");
|
||||
.SetTableName(1, "AsTableLog2")
|
||||
.SetDefaultAllTables(value =>
|
||||
{
|
||||
if (value.Length > 3) return value.Take(3).ToArray();
|
||||
return value;
|
||||
});
|
||||
|
||||
var testitems = new[]
|
||||
{
|
||||
|
Reference in New Issue
Block a user