MetadataWorkspace Constructor

 

Initializes a new instance of the MetadataWorkspace class.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodMetadataWorkspace()

Initializes a new instance of the MetadataWorkspace class.

System_CAPS_pubmethodMetadataWorkspace(Func<EdmItemCollection>, Func<StoreItemCollection>, Func<StorageMappingItemCollection>)

Constructs a MetadataWorkspace with loaders for all item collections ( ItemCollection ) that come from traditional EDMX mapping. Default o-space and o/c mapping collections will be used. The item collection delegates are executed lazily when a given collection is used for the first time. It is acceptable to pass a delegate that returns null if the collection will never be used, but this is rarely done, and any attempt by EF to use the collection in such cases will result in an exception.

System_CAPS_pubmethodMetadataWorkspace(Func<EdmItemCollection>, Func<StoreItemCollection>, Func<StorageMappingItemCollection>, Func<ObjectItemCollection>)

Constructs a MetadataWorkspace with loaders for all item collections ( ItemCollection ) needed by EF except the o/c mapping which will be created automatically based on the given o-space and c-space loaders. The item collection delegates are executed lazily when a given collection is used for the first time. It is acceptable to pass a delegate that returns null if the collection will never be used, but this is rarely done, and any attempt by EF to use the collection in such cases will result in an exception.

System_CAPS_pubmethodMetadataWorkspace(IEnumerable<String>, IEnumerable<Assembly>)

Initializes a new instance of the MetadataWorkspace class using the specified paths and assemblies.


MetadataWorkspace Constructor ()

Initializes a new instance of the MetadataWorkspace class.

public MetadataWorkspace()

MetadataWorkspace Constructor (Func<EdmItemCollection>, Func<StoreItemCollection>, Func<StorageMappingItemCollection>)

Constructs a MetadataWorkspace with loaders for all item collections ( ItemCollection ) that come from traditional EDMX mapping. Default o-space and o/c mapping collections will be used. The item collection delegates are executed lazily when a given collection is used for the first time. It is acceptable to pass a delegate that returns null if the collection will never be used, but this is rarely done, and any attempt by EF to use the collection in such cases will result in an exception.

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "c")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "s")]
public MetadataWorkspace(
	Func<EdmItemCollection> cSpaceLoader,
	Func<StoreItemCollection> sSpaceLoader,
	Func<StorageMappingItemCollection> csMappingLoader
)

Parameters

cSpaceLoader
Type: System.Func<EdmItemCollection>

Delegate to return the c-space (CSDL) item collection.

sSpaceLoader
Type: System.Func<StoreItemCollection>

Delegate to return the s-space (SSDL) item collection.

csMappingLoader
Type: System.Func<StorageMappingItemCollection>

Delegate to return the c/s mapping (MSL) item collection.


MetadataWorkspace Constructor (Func<EdmItemCollection>, Func<StoreItemCollection>, Func<StorageMappingItemCollection>, Func<ObjectItemCollection>)

Constructs a MetadataWorkspace with loaders for all item collections ( ItemCollection ) needed by EF except the o/c mapping which will be created automatically based on the given o-space and c-space loaders. The item collection delegates are executed lazily when a given collection is used for the first time. It is acceptable to pass a delegate that returns null if the collection will never be used, but this is rarely done, and any attempt by EF to use the collection in such cases will result in an exception.

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "o")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "c")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "s")]
public MetadataWorkspace(
	Func<EdmItemCollection> cSpaceLoader,
	Func<StoreItemCollection> sSpaceLoader,
	Func<StorageMappingItemCollection> csMappingLoader,
	Func<ObjectItemCollection> oSpaceLoader
)

Parameters

cSpaceLoader
Type: System.Func<EdmItemCollection>

Delegate to return the c-space (CSDL) item collection.

sSpaceLoader
Type: System.Func<StoreItemCollection>

Delegate to return the s-space (SSDL) item collection.

csMappingLoader
Type: System.Func<StorageMappingItemCollection>

Delegate to return the c/s mapping (MSL) item collection.

oSpaceLoader
Type: System.Func<ObjectItemCollection>

Delegate to return the o-space item collection.


MetadataWorkspace Constructor (IEnumerable<String>, IEnumerable<Assembly>)

Initializes a new instance of the MetadataWorkspace class using the specified paths and assemblies.

[SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")]
public MetadataWorkspace(
	IEnumerable<string> paths,
	IEnumerable<Assembly> assembliesToConsider
)

Parameters

paths
Type: System.Collections.Generic.IEnumerable<String>

The paths to workspace metadata.

assembliesToConsider
Type: System.Collections.Generic.IEnumerable<Assembly>

The names of assemblies used to construct workspace.