EdmToObjectNamespaceMap Class

 

Represents a collection of conceptual model to code namespace mappings.

Namespace:   System.Data.Entity.Design
Assembly:  System.Data.Entity.Design (in System.Data.Entity.Design.dll)

System.Object
  System.Data.Entity.Design.EdmToObjectNamespaceMap

public class EdmToObjectNamespaceMap

NameDescription
System_CAPS_pubpropertyCount

Gets the number of mappings in the EdmToObjectNamespaceMap.

System_CAPS_pubpropertyEdmNamespaces

Gets the list of model namespace names in the EdmToObjectNamespaceMap.

System_CAPS_pubpropertyItem[String]

Gets or sets the code namespace name of the specified model namespace name.

NameDescription
System_CAPS_pubmethodAdd(String, String)

Adds a namespace mapping to the EdmToObjectNamespaceMap.

System_CAPS_pubmethodClear()

Removes all namespace mappings from the EdmToObjectNamespaceMap.

System_CAPS_pubmethodContains(String)

Gets a value indicating whether the EdmToObjectNamespaceMap contains the specified model namespace name.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(String)

Removes the specified namespace mapping.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetObjectNamespace(String, String)

Gets a value indicating whether the object namespace was retrieved.

The namespace mappings are used by the EntityClassGenerator class to specify a different code namespace for generating code than what is specified in the CSDL file. The namespace mappings are consulted when a reference to a type is to be generated. If an entry is found, the value will be used to generate the qualified reference to the type; otherwise, the CSDL namespace will be used.

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: