KeySegmentTemplate Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
KeySegmentTemplate(KeySegment) |
Initializes a new instance of the KeySegmentTemplate class. |
KeySegmentTemplate(KeySegment, IDictionary<String,IEdmProperty>) |
Initializes a new instance of the KeySegmentTemplate class. Typically, it's for alternate key scenario. |
KeySegmentTemplate(IDictionary<String,String>, IEdmEntityType, IEdmNavigationSource) |
Initializes a new instance of the KeySegmentTemplate class. |
KeySegmentTemplate(KeySegment)
Initializes a new instance of the KeySegmentTemplate class.
public KeySegmentTemplate (Microsoft.OData.UriParser.KeySegment segment);
new Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate : Microsoft.OData.UriParser.KeySegment -> Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate
Public Sub New (segment As KeySegment)
Parameters
- segment
- KeySegment
The key segment, it should be a template key segment.
Applies to
KeySegmentTemplate(KeySegment, IDictionary<String,IEdmProperty>)
Initializes a new instance of the KeySegmentTemplate class. Typically, it's for alternate key scenario.
public KeySegmentTemplate (Microsoft.OData.UriParser.KeySegment segment, System.Collections.Generic.IDictionary<string,Microsoft.OData.Edm.IEdmProperty> keyProperties);
new Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate : Microsoft.OData.UriParser.KeySegment * System.Collections.Generic.IDictionary<string, Microsoft.OData.Edm.IEdmProperty> -> Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate
Public Sub New (segment As KeySegment, keyProperties As IDictionary(Of String, IEdmProperty))
Parameters
- segment
- KeySegment
The key segment, it should be a template key segment.
- keyProperties
- IDictionary<String,IEdmProperty>
The key properties, the key is the alias, the value is the property list, it could be a property from the complex property. For example: address/city.
Applies to
KeySegmentTemplate(IDictionary<String,String>, IEdmEntityType, IEdmNavigationSource)
Initializes a new instance of the KeySegmentTemplate class.
public KeySegmentTemplate (System.Collections.Generic.IDictionary<string,string> keys, Microsoft.OData.Edm.IEdmEntityType entityType, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
new Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate : System.Collections.Generic.IDictionary<string, string> * Microsoft.OData.Edm.IEdmEntityType * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.AspNetCore.OData.Routing.Template.KeySegmentTemplate
Public Sub New (keys As IDictionary(Of String, String), entityType As IEdmEntityType, navigationSource As IEdmNavigationSource)
Parameters
- keys
- IDictionary<String,String>
The input key mappings, the key string is case-sensitive, the value string should wrapper with { and }.
- entityType
- IEdmEntityType
The declaring type containes the key.
- navigationSource
- IEdmNavigationSource
The navigation source. It could be null.