ItemCollection.GetEntityContainer Method
Gets an entity container.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetEntityContainer(String) | Returns an EntityContainer object by using the specified entity container name. |
![]() | GetEntityContainer(String, Boolean) | Returns an EntityContainer object by using the specified entity container name. |
ItemCollection.GetEntityContainer Method (String)
Returns an EntityContainer object by using the specified entity container name.
Parameters
- name
-
Type:
System.String
The name of the entity container.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EntityContainerIf there is no entity container, this method returns null; otherwise, it returns the first one.
ItemCollection.GetEntityContainer Method (String, Boolean)
Returns an EntityContainer object by using the specified entity container name.
Parameters
- name
-
Type:
System.String
The name of the entity container.
- ignoreCase
-
Type:
System.Boolean
true to perform the case-insensitive search; otherwise, false.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EntityContainerIf there is no entity container, this method returns null; otherwise, it returns the first entity container.