mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 12:47:57 +08:00
23 lines
584 B
C#
23 lines
584 B
C#
![]() |
using OrmTest.Models;
|
|||
|
using SqlSugar;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Linq.Expressions;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace OrmTest.ExpressionTest
|
|||
|
{
|
|||
|
public class Field
|
|||
|
{
|
|||
|
internal static void Init()
|
|||
|
{
|
|||
|
Expression<Func<Student, object>> exp = it=>it.Name;
|
|||
|
ExpressionContext expContext = new ExpressionContext(exp, ResolveExpressType.FieldMultiple);
|
|||
|
expContext.Resolve();
|
|||
|
var selectorValue = expContext.Result.GetString();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|