多表联合查询_以字符型的字段为联接如何查询?

May 10, 2010 at 8:18 AM
Edited May 10, 2010 at 10:17 AM

表A:id name
表B:name age

要用name来关联俩个表,想要的结果:
id,name age

如何做?

Coordinator
May 10, 2010 at 11:40 AM
[JoinOn(0, typeof(A), "name", typeof(B), "name")] public class ajoinb { public long Id; public string Name; public int Age; }
May 11, 2010 at 3:43 AM

谢谢 lifeng,问题已解决。