mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
Update mapper
This commit is contained in:
@@ -44,6 +44,8 @@ namespace OrmTest
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<B> BList { get; set; }
|
||||
}
|
||||
public class B
|
||||
{
|
||||
|
||||
@@ -93,6 +93,15 @@ namespace OrmTest
|
||||
|
||||
|
||||
var qu4 = Db.Queryable<Order>().OrderBy(it=>it.Id+it.Id).ToList();
|
||||
|
||||
var list11 = Db.Queryable<A>()
|
||||
|
||||
.ToList();
|
||||
|
||||
//var list8 = Db.Queryable<A>()
|
||||
//.Mapper<ABMapping>(it=>ManyToMany.Config(it.A,it.AId,it.B,it.BId))
|
||||
//.ToList();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user