Frage

Is it possible to set up MVC 4 with SimpleMembershipProvider without EntityFramework, or do I need to write a custom provider?

Thanks in advance!

War es hilfreich?

Lösung

Yes, it is possible. You may try it by creating a new application from "Internet application" template, then delete everything which belongs to EF. Then create Users table by yourself and edit the conection string and the call of WebSecurity.InitializeDatabaseConnection().
The Users table will be populated automatically when you call WebSecurity.CreateUserAndAccount() without EF at all.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top