From b14639367c9d5aa8cda7479746d2715a1f4626e5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 4 Apr 2018 13:45:54 +0800 Subject: [PATCH] db.DbMaintenance BUG --- .../SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index 6a2be323f..64df7a79c 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -82,8 +82,8 @@ namespace SqlSugar } public virtual bool IsAnyColumn(string tableName, string columnName) { - columnName = this.SqlBuilder.GetTranslationColumnName(columnName); - tableName = this.SqlBuilder.GetTranslationTableName(tableName); + columnName = this.SqlBuilder.GetNoTranslationColumnName(columnName); + tableName = this.SqlBuilder.GetNoTranslationColumnName(tableName); var isAny = IsAnyTable(tableName); Check.Exception(!isAny, string.Format("Table {0} does not exist", tableName)); var columns = GetColumnInfosByTableName(tableName); @@ -92,7 +92,7 @@ namespace SqlSugar } public virtual bool IsPrimaryKey(string tableName, string columnName) { - columnName = this.SqlBuilder.GetTranslationColumnName(columnName); + columnName = this.SqlBuilder.GetNoTranslationColumnName(columnName); var isAny = IsAnyTable(tableName); Check.Exception(!isAny, string.Format("Table {0} does not exist", tableName)); var columns = GetColumnInfosByTableName(tableName); @@ -101,7 +101,7 @@ namespace SqlSugar } public virtual bool IsIdentity(string tableName, string columnName) { - columnName = this.SqlBuilder.GetTranslationColumnName(columnName); + columnName = this.SqlBuilder.GetNoTranslationColumnName(columnName); var isAny = IsAnyTable(tableName); Check.Exception(!isAny, string.Format("Table {0} does not exist", tableName)); var columns = GetColumnInfosByTableName(tableName);