Skip to content

About Entity Framework

Barbara Post edited this page Jun 19, 2018 · 1 revision

By definition, ExtCore uses Entity Framework but provides several projects to define:

  • the entities in YourExtension.Data.Entities
  • the entities mapping in YourExtension.Data.EntityFramework (EntityRegistrar class)
  • the EF provider to actually use, in YourExtension.Data.EntityFramework.ProviderName

The SecurityTest test project in Testing/Unit references the three aforementioned projects related to Security extension and also defines its class to indicate the DbContext structure. Thus it's correctly configured to execute migration-related operations (create initial migration, update database...)

Clone this wiki locally