I'm Using Composite keys in below Model class of mvc and same thing.I did in MS SQL Server database having two columns with both are PK,FK but i am getting error in InitializeSimpleMembershipAttribute
class like "Exception has been thrown by the target of an invocation" please help me to get how to create.
This is my model class
[Table("webpages_UsersInRoles")]
public partial class UsersInRoles
{
[Column(Order = 0)]
public int RoleId { get; set; }
public virtual NewRoles roles { get; set; }
[Column(Order = 1)]
public int UserId { get; set; }
public virtual UserProfile UserProfiles { get; set; }
}