mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
v2.3.0-preview1129 (myget.org)
This commit is contained in:
@ -139,6 +139,14 @@
|
||||
创建人名称
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:FreeSql.Tests.Issues._576Extensions.ToNormalWithinCodeGuid(System.Guid,System.String)">
|
||||
<summary>
|
||||
自定义表达式树函数解析
|
||||
</summary>
|
||||
<param name="that"></param>
|
||||
<param name="withinCode"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:FreeSql.Tests.Issues._576.SysRole.Guid">
|
||||
<summary>
|
||||
GUID
|
||||
|
@ -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