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

May 10, 2010 at 9:18 AM
Edited May 10, 2010 at 11:17 AM

表A:id name
表B:name age

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

如何做?

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

谢谢 lifeng,问题已解决。