All docs
V21.1
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

EFObjectSpaceProvider Members

Provides an Object Space in EF 6-based XAF applications.

Constructors

Name Description
EFObjectSpaceProvider(Type, ITypesInfo, EFTypeInfoSource, DbConnection) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.
EFObjectSpaceProvider(Type, ITypesInfo, EFTypeInfoSource, DbConnection, String, String) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.
EFObjectSpaceProvider(Type, ITypesInfo, EFTypeInfoSource, String) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.
EFObjectSpaceProvider(Type, ITypesInfo, EFTypeInfoSource, String, String, String) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.
EFObjectSpaceProvider(Type, DbConnection) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.
EFObjectSpaceProvider(Type, String) Initializes a new instance of the EFObjectSpaceProvider class with specified settings.

Properties

Name Description
CheckCompatibilityType Specifies an approach to check if the database and application are compatible.
Connection Specifies the connection type the current Object Space Provider uses.
ConnectionString Specifies the connection string used to access a database.
EntityStore Provides access to the storage of registered entities.
ModuleInfoType Gets the type of the class that is mapped to the ModuleInfo table in the database.
SchemaUpdateMode Specifies how to check compatibility for the database associated with the current EFObjectSpaceProvider.
TypesInfo Supplies XAF-related information on types used in the application.

Methods

Name Description
CheckDatabaseSchemaCompatibility(out Exception) Checks if a database and application are compatible. If the database is missing or a schema needs to be updated, this method returns the corresponding exception.
CreateObjectSpace() Creates a EFObjectSpace instance.
CreateUpdatingObjectSpace(Boolean) Creates an Object Space to be used to update the database.
DeleteDatabase() Deletes the database specified in the ConnectionString or Connection property.
Dispose() Releases all resources that the current EFObjectSpaceProvider object uses.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
UpdateSchema() Updates a database schema to a new version or creates a new database.

Events

Name Description
SchemaUpdating Occurs before a database is created or updated. This event allows you to replace the default update mechanism with a custom one.
See Also