mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
EasyJoin As Bug
This commit is contained in:
@@ -146,7 +146,10 @@ namespace OrmTest
|
||||
.ToList();
|
||||
|
||||
|
||||
|
||||
var sql12 = Db.Queryable<Order, OrderItem, Custom>((o, i, c) => true)
|
||||
.AS("[aa]")
|
||||
.AS<OrderItem>("[xx]")
|
||||
.AS<Custom>("[yy]").ToSql();
|
||||
|
||||
|
||||
_db.QueryFilter.Clear();
|
||||
|
@@ -648,6 +648,10 @@ namespace SqlSugar
|
||||
|
||||
private string GetTableName(string entityName)
|
||||
{
|
||||
if (this.AsTables != null && this.AsTables.Any(it=>it.Key==entityName))
|
||||
{
|
||||
entityName = this.AsTables.First(it => it.Key == entityName).Value;
|
||||
}
|
||||
var result = this.Context.EntityMaintenance.GetTableName(entityName);
|
||||
return this.Builder.GetTranslationTableName(result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user