mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-22 22:10:56 +08:00
- 调整 resources 转换成 static class 静态类;#1917
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user