v2.3.0-preview1129 (myget.org)

This commit is contained in:
2881099
2020-11-29 18:58:49 +08:00
parent 16c9fabb63
commit 9d89cb7a1e
25 changed files with 57 additions and 40 deletions

View File

@@ -12,26 +12,26 @@ using Xunit;
namespace FreeSql.Tests.Issues
{
[ExpressionCall]
public static class _576Extensions
{
public static ThreadLocal<ExpressionCallContext> expContext = new ThreadLocal<ExpressionCallContext>();
/// <summary>
/// 自定义表达式树函数解析
/// </summary>
/// <param name="that"></param>
/// <param name="withinCode"></param>
/// <returns></returns>
public static string ToNormalWithinCodeGuid([RawValue] this Guid that, string withinCode)
{
expContext.Value.Result = $"{expContext.Value.ParsedContent["withinCode"]} || '{that.ToString("N")}'";
return null;
}
}
public class _576
{
[ExpressionCall]
public static class _576Extensions
{
public static ThreadLocal<ExpressionCallContext> expContext = new ThreadLocal<ExpressionCallContext>();
/// <summary>
/// 自定义表达式树函数解析
/// </summary>
/// <param name="that"></param>
/// <param name="withinCode"></param>
/// <returns></returns>
public static string ToNormalWithinCodeGuid([RawValue] this Guid that, string withinCode)
{
expContext.Value.Result = $"{expContext.Value.ParsedContent["withinCode"]} || '{that.ToString("N")}'";
return null;
}
}
[Fact]
public void InsertInto()
{