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:

  1. Create a folder, named Model, under the root of your project.
  2. Open the context menu of the folder and click Add » New Item...
  3. In the left pane, under Visual C#, click Data.
  4. In the center pane, click ADO.NET Entity Data Model.
  5. In Name input field, enter MembershipModel.edmx and click Add.
    The Entity Data Model Wizard window appears.
  6. Select the EF Designer from database model and click Next.
  7. Connect to the database you created.
  8.   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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its 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 .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?