EdmEntityContainer.AddSingleton(String, IEdmEntityType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and adds an singleton to this entity container.
public virtual Microsoft.OData.Edm.EdmSingleton AddSingleton (string name, Microsoft.OData.Edm.IEdmEntityType entityType);
abstract member AddSingleton : string * Microsoft.OData.Edm.IEdmEntityType -> Microsoft.OData.Edm.EdmSingleton
override this.AddSingleton : string * Microsoft.OData.Edm.IEdmEntityType -> Microsoft.OData.Edm.EdmSingleton
Public Overridable Function AddSingleton (name As String, entityType As IEdmEntityType) As EdmSingleton
Parameters
- name
- String
Name of the singleton.
- entityType
- IEdmEntityType
The entity type of this singleton.
Returns
Created singleton.