Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Model Inheritance: Microsoft.Restier.Core.InvocationContextSyntax
Summary
Represents context under which a model is requested.Constructors
.ctor
Initializes a new instance of the ModelContext class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An Api. |
.ctor Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An Api. |
.ctor Inherited
Inherited from
objectSyntax
Properties
Api Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Property Value
Type:Microsoft.Restier.Core.ApiBase
ResourceSetTypeMap
Gets resource set and resource type map dictionary, it will be used by publisher for model build.Syntax
Property Value
Type:System.Collections.Generic.IDictionary<string, System.Type>
ResourceTypeKeyPropertiesMap
Gets resource type and its key properties map dictionary, and used by publisher for model build. This is useful when key properties does not have key attribute or follow Web Api OData key property naming convention. Otherwise, this collection is not needed.Syntax
Property Value
Type:System.Collections.Generic.IDictionary<System.Type, System.Collections.Generic.ICollection<System.Reflection.PropertyInfo>>
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetApiService Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Returns
Type:T
The API service instance.
Type Parameters
T- The API service type.
GetApiService Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | System.Type | The API service type. |
Returns
Type:object
The API service instance.
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?