mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-27 18:25:47 +08:00
v2.3.0-preview1129 (myget.org)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user