How to convert Linq2SQL to Entity Framework?
Did anybody convert this solution to use Entity Framework instead of Linq2SQL?
It seems Microsoft merely supports Linq2SQL (only bug fixes), and because of the growing and widening functionality of the EF, it worths the conversion.
The first difficulty is in the custom membership provider.
In all GetUser... methods we have to return the MembershipUser for the Asp.net Authentication Service, but we want ot use the UserInformation object in our solution, to store them in the Globals.currentUser and use them in the UserRegistration and AccountSettings pages.
In Linq2SQL it's easy to circumvent this difficuly, because we can inherit UserInformation from MembershipUser, as we did in UserInformationMetadata.cs class.
In EF however all objects are inherited from the EntityObject, so we can't inherit from two base classes.
Maybe the solution is to extract Interface from the membershipUser and apply it to UserInformation? Did anybody solve this issue?
Any help will be greatly appreciated,
Last edited by Gabor66; November 7th, 2010 at 04:02 AM..