Replies: 1 comment 3 replies
-
是这样配置的 直接: fsql.Select<A>().Include(a => a.B).ToSql() |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
比如主表A:treeId, Id 子表B 也有treeId,Id ,如何实现一对一多列映射 (select * from A a left join B b on a.treeId=b.treeId and a.Id=b.Id)
代码如下:
public class A {
public int treeId {get;set;}
public int Id {get;set;}
[Navigate("treeId,Id?")]
public B Son {get;set;}
}
public class B{
public int treeId {get;set;}
public int Id {get;set;}
public string Name {get;set;}
}
Beta Was this translation helpful? Give feedback.
All reactions