- 优化 Select<object>().AsType(..) Dto 映射查询;

This commit is contained in:
2881099
2022-08-29 16:33:26 +08:00
parent d99e72abd6
commit cc5feb58d1
3 changed files with 31 additions and 2 deletions

View File

@ -332,6 +332,19 @@ namespace base_entity
[Column(StringLength = -1, IsNullable = false)]
public string code2 { get; set; }
}
public class CCC
{
public int bb { get; set; }
public int aa { get; set; }
}
public class BBB
{
public int bb { get; set; }
}
public class AAA
{
public int aa { get; set; }
}
static void Main(string[] args)
@ -389,6 +402,9 @@ namespace base_entity
BaseEntity.Initialization(fsql, () => _asyncUow.Value);
#endregion
var sqlskdfj = fsql.Select<object>().AsType(typeof(BBB)).ToSql(a => new CCC());
var dbpars = new List<DbParameter>();
var a1id1 = Guid.NewGuid();