|
|
@@ -58,7 +58,6 @@ public static class RepositoryExtension
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 排序方式(默认降序)
|
|
|
/// </summary>
|
|
|
@@ -225,7 +224,7 @@ public static class RepositoryExtension
|
|
|
var entityType = typeof(T);
|
|
|
var attr = entityType.GetCustomAttribute<TenantAttribute>();
|
|
|
var configId = attr == null ? SqlSugarConst.ConfigId : attr.configId.ToString();
|
|
|
- var tableName = entityType.GetCustomAttribute<SugarTable>().TableName;
|
|
|
+ var tableName = entityType.GetCustomAttribute<SugarTable>().TableName;
|
|
|
|
|
|
//根据实际的数据库类型 修改此处 如果固定使用一个数据库,可用直接写死
|
|
|
var wholeTableName = $"{configId}.dbo.{tableName}";
|
|
|
@@ -238,8 +237,5 @@ public static class RepositoryExtension
|
|
|
wholeTableName = $"{configId}.dbo.{tableName}";
|
|
|
}
|
|
|
return wholeTableName;
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
+}
|