Jaa


ODataModelBuilder.Singleton<TEntityType>(String) Method

Definition

Registers a singleton as a part of the model and returns an object that can be used to configure the singleton. This method can be called multiple times for the same type to perform multiple lines of configuration.

public Microsoft.AspNet.OData.Builder.SingletonConfiguration<TEntityType> Singleton<TEntityType> (string name) where TEntityType : class;
member this.Singleton : string -> Microsoft.AspNet.OData.Builder.SingletonConfiguration<'EntityType (requires 'EntityType : null)> (requires 'EntityType : null)
Public Function Singleton(Of TEntityType As Class) (name As String) As SingletonConfiguration(Of TEntityType)

Type Parameters

TEntityType

The entity type of the singleton.

Parameters

name
String

The name of the singleton.

Returns

The configuration object for the specified singleton.

Applies to