SingletonConfiguration Constructor
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
SingletonConfiguration() | Initializes a new instance of the SingletonConfiguration class. The default constructor is intended for use by unit testing only. |
|
SingletonConfiguration(ODataModelBuilder, EntityTypeConfiguration, String) | Initializes a new instance of the SingletonConfiguration class. |
|
SingletonConfiguration(ODataModelBuilder, Type, String) | Initializes a new instance of the SingletonConfiguration class. |
See Also
SingletonConfiguration Class
System.Web.OData.Builder Namespace
Return to top
SingletonConfiguration Constructor ()
Initializes a new instance of the SingletonConfiguration class. The default constructor is intended for use by unit testing only.
Syntax
public SingletonConfiguration()
public:
SingletonConfiguration()
new : unit -> SingletonConfiguration
Public Sub New
Return to top
SingletonConfiguration Constructor (ODataModelBuilder, EntityTypeConfiguration, String)
Initializes a new instance of the SingletonConfiguration class.
Syntax
public SingletonConfiguration(
ODataModelBuilder modelBuilder,
EntityTypeConfiguration entityType,
string name
)
public:
SingletonConfiguration(
ODataModelBuilder^ modelBuilder,
EntityTypeConfiguration^ entityType,
String^ name
)
new :
modelBuilder:ODataModelBuilder *
entityType:EntityTypeConfiguration *
name:string -> SingletonConfiguration
Public Sub New (
modelBuilder As ODataModelBuilder,
entityType As EntityTypeConfiguration,
name As String
)
Parameters
modelBuilder
Type: System.Web.OData.Builder.ODataModelBuilderThe ODataModelBuilder.
entityType
Type: System.Web.OData.Builder.EntityTypeConfigurationThe entity type EntityTypeConfiguration contained in this singleton.
name
Type: System.StringThe name of the singleton.
Return to top
SingletonConfiguration Constructor (ODataModelBuilder, Type, String)
Initializes a new instance of the SingletonConfiguration class.
Syntax
public SingletonConfiguration(
ODataModelBuilder modelBuilder,
Type entityClrType,
string name
)
public:
SingletonConfiguration(
ODataModelBuilder^ modelBuilder,
Type^ entityClrType,
String^ name
)
new :
modelBuilder:ODataModelBuilder *
entityClrType:Type *
name:string -> SingletonConfiguration
Public Sub New (
modelBuilder As ODataModelBuilder,
entityClrType As Type,
name As String
)
Parameters
modelBuilder
Type: System.Web.OData.Builder.ODataModelBuilderThe ODataModelBuilder.
entityClrType
Type: System.TypeThe Type of the entity type contained in this singleton.
name
Type: System.StringThe name of the singleton.
Return to top