From 55029ed2cfbf15d702a0e144e82a360f8793a233 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 11 Feb 2018 15:09:15 +0800 Subject: [PATCH] - --- .../SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index 0578d0e62..495e5e87c 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -104,7 +104,7 @@ namespace SqlSugar if (this.Context.MappingColumns == null || this.Context.MappingColumns.Count == 0) return dbColumnName; else { - var mappingInfo = this.Context.MappingColumns.SingleOrDefault(it => it.EntityName == typeName && it.DbColumnName == dbColumnName); + var mappingInfo = this.Context.MappingColumns.SingleOrDefault(it => it.EntityName == typeName && it.DbColumnName.Equals(dbColumnName,StringComparison.CurrentCultureIgnoreCase)); return mappingInfo == null ? dbColumnName : mappingInfo.PropertyName; } } @@ -114,7 +114,7 @@ namespace SqlSugar if (this.Context.MappingColumns == null || this.Context.MappingColumns.Count == 0) return dbColumnName; else { - var mappingInfo = this.Context.MappingColumns.SingleOrDefault(it => it.EntityName == typeName && it.DbColumnName == dbColumnName); + var mappingInfo = this.Context.MappingColumns.SingleOrDefault(it => it.EntityName == typeName && it.DbColumnName.Equals(dbColumnName,StringComparison.CurrentCultureIgnoreCase)); return mappingInfo == null ? dbColumnName : mappingInfo.PropertyName; } }