mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 优化 Select<object>().AsType(..) Dto 映射查询;
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user