ASP.NET MVC 4 getting error "Exception has been thrown by the target of an invocation" -


i'm using composite keys in below model class of mvc , same thing.i did in ms sql server database having 2 columns both pk,fk getting error in initializesimplemembershipattribute class "exception has been thrown target of invocation" please me how create. 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; }           } 

why doing that? dont need define yourself. if use accountcontroller , if use websecurity role table created in simplemembershipinitializer filter. , need use built in functionality provided simplemembership provider.

in short, dont need define table imo reason having these problems.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -