mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-10 03:14:57 +08:00
DbFirst Where Case insensitive
This commit is contained in:
@@ -122,7 +122,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (objectNames.HasValue())
|
if (objectNames.HasValue())
|
||||||
{
|
{
|
||||||
this.TableInfoList = this.TableInfoList.Where(it => objectNames.Contains(it.Name)).ToList();
|
this.TableInfoList = this.TableInfoList.Where(it => objectNames.Select(x=>x.ToLower()).Contains(it.Name.ToLower())).ToList();
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user