0
如果表UsersInRoles是關係表,我可以如何更改此數據映射。 (例如,userId = 3,返回5行)。LINQ to SQL Association 1 to N
private EntityRef<UserInRoles> roles;
[Association(Storage = "UsersInRoles", ThisKey = "UserId")]
public UserInRoles Roles
{
get { return this.roles.Entity; }
set { this.roles.Entity = value; }
}
THX
@ david-b謝謝!工作正常。 – 2011-02-15 09:32:14