Share via


SingletonConfiguration<TEntityType> Class

Definition

Represents an IEdmSingleton that can be built using ODataModelBuilder.

public class SingletonConfiguration<TEntityType> : Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<TEntityType> where TEntityType : class
type SingletonConfiguration<'EntityType (requires 'EntityType : null)> = class
    inherit NavigationSourceConfiguration<'EntityType (requires 'EntityType : null)>
Public Class SingletonConfiguration(Of TEntityType)
Inherits NavigationSourceConfiguration(Of TEntityType)

Type Parameters

TEntityType
Inheritance
SingletonConfiguration<TEntityType>

Properties

Binding

Gets a binding path configuration through which you can configure binding paths for the navigation property of this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
EntityType

Gets the entity type contained in this navigation source configuration.

(Inherited from NavigationSourceConfiguration<TEntityType>)

Methods

FindBinding(NavigationPropertyConfiguration)

Finds the bindings NavigationPropertyBindingConfiguration for the given navigation property

(Inherited from NavigationSourceConfiguration<TEntityType>)
FindBinding(NavigationPropertyConfiguration, IList<MemberInfo>)

Finds the NavigationPropertyBindingConfiguration for the given navigation property.

(Inherited from NavigationSourceConfiguration<TEntityType>)
FindBindings(String)

Finds the bindings NavigationPropertyBindingConfiguration for the navigation property with the given name.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasDerivedTypeConstraints(Type[])

Adds subtypes to the list of derived type constraints.

HasDerivedTypeConstraints<TDerivedType>()

Adds TDerivedType to the list of derived type constraints.

HasEditLink(Func<ResourceContext<TEntityType>,Uri>, Boolean)

Configures the edit link for the entities from this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasIdLink(Func<ResourceContext<TEntityType>,Uri>, Boolean)

Configures the ID link for the entities from this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasManyBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>)

Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasManyBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasManyBinding<TTargetType>(Expression<Func<TEntityType,IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>)

Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasManyBinding<TTargetType>(Expression<Func<TEntityType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasNavigationPropertiesLink(IEnumerable<NavigationPropertyConfiguration>, Func<ResourceContext<TEntityType>,IEdmNavigationProperty,Uri>, Boolean)

Configures the navigation link for the given navigation properties for entities from this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasNavigationPropertyLink(NavigationPropertyConfiguration, Func<ResourceContext<TEntityType>,IEdmNavigationProperty,Uri>, Boolean)

Configures the navigation link for the given navigation property for entities from this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasOptionalBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasOptionalBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, String)

Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasOptionalBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasOptionalBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, String)

Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasReadLink(Func<ResourceContext<TEntityType>,Uri>, Boolean)

Configures the read link for the entities from this navigation source.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasRequiredBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasRequiredBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, String)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasRequiredBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasRequiredBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, String)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasSingletonBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given singleton.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasSingletonBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, String)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given singleton.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasSingletonBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given singleton.

(Inherited from NavigationSourceConfiguration<TEntityType>)
HasSingletonBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, String)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given singleton.

(Inherited from NavigationSourceConfiguration<TEntityType>)

Applies to