mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
-
This commit is contained in:
@@ -206,7 +206,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
protected virtual string GetTableName(EntityInfo entityInfo)
|
protected virtual string GetTableName(EntityInfo entityInfo)
|
||||||
{
|
{
|
||||||
return this.Context.EntityProvider.GetTableName(entityInfo.DbTableName);
|
return this.Context.EntityProvider.GetTableName(entityInfo.EntityName);
|
||||||
}
|
}
|
||||||
protected virtual DbColumnInfo EntityColumnToDbColumn(EntityInfo entityInfo, string tableName, EntityColumnInfo item)
|
protected virtual DbColumnInfo EntityColumnToDbColumn(EntityInfo entityInfo, string tableName, EntityColumnInfo item)
|
||||||
{
|
{
|
||||||
|
@@ -60,7 +60,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
||||||
FROM sysobjects s
|
FROM sysobjects s
|
||||||
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('U') AND tbp.Name='MS_Description'";
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('U') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected override string GetViewInfoListSql
|
protected override string GetViewInfoListSql
|
||||||
@@ -69,7 +69,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
||||||
FROM sysobjects s
|
FROM sysobjects s
|
||||||
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('V') AND tbp.Name='MS_Description'";
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('V') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user