1

I am implementing Membership and security in my MVC4 website using custom database. Every things working fine but when I used .EDMX(Designer) to add my database tables membership and security starts giving errors. I also know the reason: This is due to duplicate Class files as default membership use code first approach and I am using database first approach. My question is there is any soluton that I can work using database first(EDMX) and also my security and membership functionality works fine.

Thanks.

3
  • This might be a good starting point: stackoverflow.com/questions/15112214/… Commented Mar 18, 2013 at 14:08
  • Thanks Alistair Findlay .... I have already solved my problem. Thanks for your efforts. Tried whole day with different solutions and finally solved my problem.I have also used the same way as your post states. Commented Mar 19, 2013 at 3:56
  • Nice one - I'll add a proper reply so you can accept as an answer and close off the issue! Commented Mar 19, 2013 at 8:22

1 Answer 1

0

The following post details the steps to take when using SimpleMembership with a Database-First approach: Using MVC 4 SimpleMembership with an existing database-first EF model

Also, you may find the following link has some useful information about SimpleMembership: http://weblogs.asp.net/jgalloway/archive/2012/08/29/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.