sunkaixuan
8 years ago
22 changed files with 94 additions and 31 deletions
Binary file not shown.
@ -0,0 +1,22 @@ |
|||
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(); |
|||
} |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue