Synchronization code

This commit is contained in:
sunkaixuan
2023-07-19 13:19:30 +08:00
parent 34b9a94ba8
commit e5e99d56c8
5 changed files with 32 additions and 1 deletions

View File

@@ -327,6 +327,12 @@ namespace SqlSugar
var entityName = typeof(T).Name;
return _As(tableName, entityName);
}
public ISugarQueryable<T> AsWithAttr()
{
var asName=GetTableName(this.EntityInfo, this.EntityInfo.DbTableName);
this.QueryBuilder.IsCrossQueryWithAttr = true;
return this.AS(asName);
}
public ISugarQueryable<T> AsType(Type tableNameType)
{
return AS(this.Context.EntityMaintenance.GetEntityInfo(tableNameType).DbTableName);