ASP.NET MVC auth or custom forms when using EF 4?

I am new to ASP.NET. Since I want to use ORM, it seems I would like Entity to represent the user or member or something else, and not some data hidden by api authentication. In fact, I do not see how I can live without him.

How do people deal with this? Give up your own authentication? Or is there a best practice for enabling forms authentication in the Entity Framework?

In short, since in any case, I need a User and Role Entity object for queries, should I skip auth forms or find a way to use it?

thank

+5
source share
2

EF Forms Auth - . Forms Auth ASP.NET .

, :

http://msdn.microsoft.com/en-us/library/ms172766(VS.80).aspx

ASP.NET MVC Auth, , .

+4

FormsAuthentication , web.config <credentials>, Authenticate. Membership MembershipProvider, ( SqlProfileProvider).

ASP.NET , FormsAuthentication . , , cookie. , .

, EF , , FormsAuthnetication.

+3

All Articles