Define an ADO.NET entity data model for the customer table
To have a strongly-typed model for accessing the data, you can add an Entity Model to your project in Visual Studio in the following way:
- Create a folder, named
Model, under the root of your project. - Open the context menu of the folder and click Add» New Item...
- In the left pane, under Visual C#, click Data.
- In the center pane, click ADO.NET Entity Data Model.
- In Nameinput field, enter****
MembershipModel.edmxand click Add.
The Entity Data Model Wizard window appears. - Select the EF Designer from database model and click Next.
- Connect to the database you created.
- Add the Customers table from the database to the model and click Finish.
The data model is created and a CustomMembershipProviderEntities class is created, which is used later on in the sample code.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.