- 增加 SqlExt.IsNull 方法;

This commit is contained in:
28810
2020-09-06 00:52:39 +08:00
parent 24e0fcd0af
commit 8200b0e2e0
4 changed files with 38 additions and 1 deletions

View File

@ -233,6 +233,12 @@ namespace FreeSql.Tests
EdiId2 = SqlExt.Max(a.Key).Over().PartitionBy(a.Value.EdiId).OrderByDescending(a.Value.Id).ToValue(),
});
var sqlextIsNull = g.sqlserver.Select<EdiItem>()
.ToSql(a => new
{
nvl = SqlExt.IsNull(a.EdiId, 0)
});
var sqlextGroupConcat = g.mysql.Select<Edi, EdiItem>()
.InnerJoin((a, b) => b.Id == a.Id)
.ToSql((a, b) => new