Skip to main content

Database Tables and Entity Model

The Email Module creates the following tables to store email messages temporarily:

In order to manipulate these tables, we rely on an object relational mapping tool (ORM) from Microsoft called Entity Framework. The Eleflex.Storage.EntityFramework NuGet package contains framework classes that perform the work using this technology.

The Eleflex.Email.Server project contains the ADO .NET Entity Data Model for the database tables called “EmailDB.edmx”. This allows developers access to the database table programmatically. This file is important because the T4 text templates will generate all the default classes needed in the module using this, discussed in the next section.