- 调整 resources 转换成 static class 静态类;#1917

This commit is contained in:
2881099
2024-11-08 14:35:10 +08:00
parent fa0e5ba0e2
commit 01b9ae0076
228 changed files with 3538 additions and 4961 deletions

View File

@@ -80,8 +80,8 @@ namespace FreeSql.MsAccess
{
if (sb.Length > 0) sb.Append("\r\n");
var tb = obj.tableSchema;
if (tb == null) throw new Exception(CoreStrings.S_Type_IsNot_Migrable(obj.tableSchema.Type.FullName));
if (tb.Columns.Any() == false) throw new Exception(CoreStrings.S_Type_IsNot_Migrable_0Attributes(obj.tableSchema.Type.FullName));
if (tb == null) throw new Exception(CoreErrorStrings.S_Type_IsNot_Migrable(obj.tableSchema.Type.FullName));
if (tb.Columns.Any() == false) throw new Exception(CoreErrorStrings.S_Type_IsNot_Migrable_0Attributes(obj.tableSchema.Type.FullName));
var tbname = tb.DbName;
var tboldname = tb.DbOldName; //旧表名
if (string.Compare(tbname, tboldname, true) == 0) tboldname = null;
@@ -177,7 +177,7 @@ namespace FreeSql.MsAccess
istmpatler = true;
}
if (tboldname != null && isexistsTb == true)
throw new Exception(CoreStrings.S_OldTableExists(tboldname, tbname));
throw new Exception(CoreErrorStrings.S_OldTableExists(tboldname, tbname));
DataTable schemaColumns = null;
DataTable schemaDataTypes = null;