design - Modeling a Join Table -


I have the following database model:

 [user] Name of the ID [role] Name of the ID [UserRole] UserId RoleId IsActive 

And I want to make a good way to represent this relationship and in the property that is in the objects without representing a class to represent the UserRole table.

Any thoughts?

Thanks a lot!

is simply a feature of a user object called "roles", in which a list of roles it occurs.

For a list of active elements, even for a passive people, for 2 attributes, you can use the object to manage the active flag.

In addition, you may be in the role of users in the role of the role object (either additional or extra role attributes in the user object) - again with the "inactive" copy.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -