DefaultDbModelStore Class

Definition

Loads or saves models from/into .edmx files at a specified location.

public class DefaultDbModelStore : System.Data.Entity.Infrastructure.DbModelStore
type DefaultDbModelStore = class
    inherit DbModelStore
Public Class DefaultDbModelStore
Inherits DbModelStore
Inheritance
DefaultDbModelStore

Constructors

DefaultDbModelStore(String)

Initializes a new DefaultDbModelStore instance.

Properties

Directory

Gets the location of the .edmx files.

Methods

FileIsValid(Type, String)

Validates the model store is valid. The default implementation verifies that the .edmx file was last written after the context assembly was last written.

GetDefaultSchema(Type)

Gets the default database schema used by a model.

(Inherited from DbModelStore)
GetFilePath(Type)

Gets the path of the .edmx file corresponding to the specified context type.

Save(Type, DbModel)

Saves a model to the store.

TryGetEdmx(Type)

Retrieves an edmx XDocument version of the model from the store.

TryLoad(Type)

Loads a model from the store.

Applies to