mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Synchronization code
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user