views:

80

answers:

2

Hi, I have a website using ASP.NET Membership, Entity Framework 4 in place and MS SQL 2008 for DB.

I would like to know if using ASP.NET Membership the interaction with the database will be pass using Entity Framework?

Thanks for your help!

A: 

If you want a custom membership provider, you just need to create a class that inherits MembershipProvider abstract class. Then you will need to implement abstract methods like, ValidateUser, UpdateUser, GetUser etc. You can use EntityFramework while implementing your custom membership provider methods.

Below documents implement custom membership provider with using odbc. You can use your EntityModel instead of odbc.

http://msdn.microsoft.com/en-us/library/44w5aswa.aspx

http://msdn.microsoft.com/en-us/library/6tc47t75.aspx

Musa Hafalır
nowhere in the question is there a mention of a custom provider implementation. I too often see people flippantly suggesting implementing a custom provider stack before they actually understand the problem domain. -1
Sky Sanders
+1  A: 

No, SqlMembership, as well as the other providers in the Sql stack, use stored procedures called directly.

You may, if you would like, build an EF conceptual model on top of your aspnet_db database if you would like to examine or interact with it.

But let me strongly advise that you should treat it as read only unless you know exactly what it is you want to update or delete.

Sky Sanders