Share via


EdmEntityContainer.AddSingleton(String, IEdmEntityType) Method

Definition

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.

Applies to