/// <summary> /// Constructor for an EntityContext object that uses the <see cref="ReflectionMappingProvider"/> /// to populate its entity type and property mappings. /// </summary> /// <remarks>This method is provided so that classes derived from <see cref="EntityContext"/> /// can be defined with additional properties that provide access to the types of entities that the context manages</remarks> protected EntityContext() { Mappings = new EntityMappingStore(); var rmp = new ReflectionMappingProvider(); rmp.AddMappingsForContext(Mappings, this); }
/// <summary> /// Constructor for an EntityContext object that uses the <see cref="ReflectionMappingProvider"/> /// to populate its entity type and property mappings. /// </summary> /// <remarks>This method is provided so that classes derived from <see cref="EntityContext"/> /// can be defined with additional properties that provide access to the types of entities that the context manages</remarks> protected EntityContext() { var rmp = new ReflectionMappingProvider(); rmp.AddMappingsForContext(EntityMappingStore.Instance, this); }