Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created an ASP.net MVC4 application with Internet application template, and want to add List<T> property to MembershipUser object provided by ASP.net builtin Authetication.

This List property will be a list of StockPermission object:


public class StockPermission
{

private Stock stock;
private byte afterSaveAction;
private bool allowEditingStockDocs;
private bool allowChangingUser;
}

Therefore my MembershipUser will contain StockPermission objects which let MembershipUser to perform defined action with those Stocks in the List

That means I want to create a custom MembershipUser which will contain property like this:
List<StockPermission> StockPermissions 

Is there a way I can realize it?
Posted
Updated 21-Jul-13 3:52am
v6
Comments
OriginalGriff 21-Jul-13 9:59am    
Stop bumping your question. Making a trivial change to bring it back to the top of the list is rude and unhelpful, and may well slow a response instead of speeding one.
Bear in mind it is a Sunday and most people are out there enjoying themselves and having a life instead of looking here...

1 solution

To add List property to our MembershipUser object or any other properties we can create custom MembershipProvider and custom MembershipUser classes describer in this article:

http://msdn.microsoft.com/en-us/library/ms366730(v=vs.100).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900