This question is locked. New answers and comments are not allowed.
Using 2011 Q2:
I have a Use Case with a table that is joined to itself through a Many to Many Join Table.
Example: Any User may or may not have security access to another User. For ease of use there are two tables [Users] and [Users_Users]. [Users] has 1 field [Id]. [Users_Users] has 2 fields [AdminUserId] & [UserId]. Both [Users_Users].[AdminUserId] & [Users_Users].[UserId] are mapped to [Users].[Id] A record in the [Users_Users] table means the [AdminUserId] has access to [UserId]; no record = no access.
I have this modeled as a self join through the join table, but no changes are being committed to the [Users_Users] table. After SaveChanges() the object reverts to the previous list. The association has the "Is Managed" property set to True for both the "Source" and "Target".
Any ideas? I saw some documentation under the Fluent Mapping API, but I am just doing the database first approach.
I have a Use Case with a table that is joined to itself through a Many to Many Join Table.
Example: Any User may or may not have security access to another User. For ease of use there are two tables [Users] and [Users_Users]. [Users] has 1 field [Id]. [Users_Users] has 2 fields [AdminUserId] & [UserId]. Both [Users_Users].[AdminUserId] & [Users_Users].[UserId] are mapped to [Users].[Id] A record in the [Users_Users] table means the [AdminUserId] has access to [UserId]; no record = no access.
I have this modeled as a self join through the join table, but no changes are being committed to the [Users_Users] table. After SaveChanges() the object reverts to the previous list. The association has the "Is Managed" property set to True for both the "Source" and "Target".
Any ideas? I saw some documentation under the Fluent Mapping API, but I am just doing the database first approach.