How to join with LinQ to (typed) dataset?

后端 未结 1 1793
天命终不由人
天命终不由人 2021-01-03 04:54

i recently upgraded VS 2005 to 2010 and am fairly new to LinQ. Maybe somebody can put me in the right way.

Background: I have a typed dataset and h

相关标签:
1条回答
  • I am afraid that someone will come and start throwing rocks at me but I will take my chances. I would probably start with this:

    var AccessRules = from ar in aspnet_AccessRule
                from rar in aspnet_Role
                from r in aspnet_Roles
                from uir in aspnet_UsersInRoles
                where ar.idaccessrule == rar.fiAccessRule
                where rar.fiRole == r.RoleId
                where r.RoleId == uir.RoleId
                select ar;
    

    Hmmm.. I actuall don't know how your dataset looks, but I think you get the point from this pseudocode.

    Edit: here is the link to tool that might help you: Linqer

    0 讨论(0)
提交回复
热议问题