public void ConvertColumns_2() { var colums = LambdaToSql.ConvertColumns <OperationTest>(t => new { t.IntKey, t.StringKey })?.ToArray(); Assert.Equal(new[] { "IntKey", "StringKey" }, colums); }
public override void SetColumns <TEntity>(Expression <Func <TEntity, object> > columns) { _columns = LambdaToSql.ConvertColumns <TEntity>(columns); }
public void ConvertColumns_1() { var colums = LambdaToSql.ConvertColumns <OperationTest>(t => t.IntKey)?.ToArray(); Assert.Equal(new[] { "IntKey" }, colums); }