Update GBase

This commit is contained in:
sunkaixuan 2022-08-28 14:32:34 +08:00
parent 1eae189b6e
commit 8ef4d41b15
3 changed files with 12 additions and 6 deletions

View File

@ -87,11 +87,11 @@ namespace OrmTest
))
.Select((o, i, c) => c).ToList();
var twoClass = db.Queryable<Order, OrderItem, Custom>((o, i, c) => new JoinQueryInfos(
JoinType.Left, o.Id == i.OrderId,
JoinType.Left, o.CustomId == c.Id
))
.Select((o, i, c) => new { o,i}).ToList();
// var twoClass = db.Queryable<Order, OrderItem, Custom>((o, i, c) => new JoinQueryInfos(
// JoinType.Left, o.Id == i.OrderId,
// JoinType.Left, o.CustomId == c.Id
// ))
//.Select((o, i, c) => new { o,i}).ToList();
List<Dictionary<string, object>> ListDic = db.Queryable<Order, OrderItem, Custom>((o, i, c) => new JoinQueryInfos(
JoinType.Left, o.Id == i.OrderId,

View File

@ -9,6 +9,7 @@ namespace GbaseTest
{
Demo0_SqlSugarClient.Init();
Demo1_Queryable.Init();
Demo3_Insertable.Init();
Console.WriteLine("Hello World!");
}
}

View File

@ -18,7 +18,12 @@ namespace SqlSugar.GBase
}
public override string SqlTranslationLeft { get { return ""; } }
public override string SqlTranslationRight { get { return ""; } }
public override bool IsTranslationText(string name)
{
var result = name.IsContainsIn( UtilConstants.Space,"(",")");
return result;
}
public override string GetLimit() { return ""; }
}
public partial class GBaseMethod : DefaultDbMethod, IDbMethods
{