Share via


SingletonConfiguration<TEntityType> Class

 

Represents an IEdmSingleton that can be built using ODataModelBuilder.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.OData.Builder.NavigationSourceConfiguration<TEntityType>
    System.Web.OData.Builder.SingletonConfiguration<TEntityType>

Syntax

public class SingletonConfiguration<TEntityType> : NavigationSourceConfiguration<TEntityType>
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class
public ref class SingletonConfiguration : NavigationSourceConfiguration<TEntityType>
type SingletonConfiguration<'TEntityType when 'TEntityType : not struct> = 
    class
        inherit NavigationSourceConfiguration<'TEntityType>
    end
Public Class SingletonConfiguration(Of TEntityType As Class)
    Inherits NavigationSourceConfiguration(Of TEntityType)

Properties

Name Description
System_CAPS_pubproperty EntityType

Gets the entity type contained in this navigation source configuration.(Inherited from NavigationSourceConfiguration<TEntityType>.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration)

Finds the NavigationPropertyBindingConfiguration for the given navigation property and creates it if it does not exist.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration, Boolean)

Finds the NavigationPropertyBindingConfiguration for the given navigation property.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod FindBinding(String)

Finds the NavigationPropertyBindingConfiguration for the navigation property with the given name.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod HasEditLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)

Configures the edit link for the entities from this navigation source.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod HasIdLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)

Configures the ID link for the entities from this navigation source.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod HasNavigationPropertiesLink(IEnumerable<NavigationPropertyConfiguration>, Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri>, Boolean)

Configures the navigation link for the given navigation properties for entities from this navigation source.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod HasNavigationPropertyLink(NavigationPropertyConfiguration, Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri>, Boolean)

Configures the navigation link for the given navigation property for entities from this navigation source.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod HasReadLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)

Configures the read link for the entities from this navigation source.(Inherited from NavigationSourceConfiguration<TEntityType>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_pubmethod 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>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.OData.Builder Namespace

Return to top