Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.CoreSyntax
Summary
This type is defined in Microsoft.Restier.Core.Remarks
See Microsoft documentation for more information about the rest of the API.Constructors
.ctor Inherited
Inherited from
objectSyntax
Properties
ServiceProvider
Gets the IServiceProvider which contains all services.Syntax
Property Value
Type:System.IServiceProvider
Methods
Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.Syntax
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
GenerateVisibilityMatrix Extension
Extension method from
Microsoft.Restier.Breakdance.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | The ApiBase instance to process. |
markdown | bool | - |
Returns
Type:string
A string containing the Markdown table of results.
GetApiService Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
Returns
Type:T
The service instance.
Type Parameters
T- The service type.
GetApiServices Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | - |
Returns
Type:System.Collections.Generic.IEnumerable<T>
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetModel Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | The ApiBase instance to extend. |
Returns
Type:Microsoft.OData.Edm.IEdmModel
The IEdmModel used by this ApiBase instance.
GetProperty Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of a property. |
Returns
Type:T
The value of the property.
Type Parameters
T- The type of the property.
GetProperty Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of a property. |
Returns
Type:object
The value of the property.
GetQueryableSource Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of an entity set, singleton or composable function import. |
arguments | object[] | If name is a composable function import, |
| the arguments to be passed to the composable function import. |
Returns
Type:System.Linq.IQueryable
A queryable source.
Remarks
If the name identifies a singleton or a composable function import whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated as the API engine only operates asynchronously.GetQueryableSource Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
namespaceName | string | The name of a namespace containing a composable function. |
name | string | The name of a composable function. |
arguments | object[] | The arguments to be passed to the composable function. |
Returns
Type:System.Linq.IQueryable
A queryable source.
Remarks
If the name identifies a composable function whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.GetQueryableSource Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of an entity set, singleton or composable function import. |
arguments | object[] | If name is a composable function import, |
| the arguments to be passed to the composable function import. |
Returns
Type:System.Linq.IQueryable<TElement>
A queryable source.
Type Parameters
TElement- The type of the elements in the queryable source.
Remarks
If the name identifies a singleton or a composable function import whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.GetQueryableSource Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
namespaceName | string | The name of a namespace containing a composable function. |
name | string | The name of a composable function. |
arguments | object[] | The arguments to be passed to the composable function. |
Returns
Type:System.Linq.IQueryable<TElement>
A queryable source.
Type Parameters
TElement- The type of the elements in the queryable source.
Remarks
If the name identifies a composable function whose result is a singleton, the resulting queryable source will be configured such that it represents exactly zero or one result. Note that the resulting queryable source cannot be synchronously enumerated, as the API engine only operates asynchronously.GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
HasProperty Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of a property. |
Returns
Type:bool
true if this object has the property; otherwise, false.
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
QueryAsync Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
request | Microsoft.Restier.Core.Query.QueryRequest | A query request. |
cancellationToken | System.Threading.CancellationToken | An optional cancellation token. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.Restier.Core.Query.QueryResult>
A task that represents the asynchronous
operation whose result is a query result.
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
RemoveProperty Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of a property. |
SetProperty Extension
Extension method from
Microsoft.Restier.Core.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An API. |
name | string | The name of a property. |
value | object | A value for the property. |
SubmitAsync
Asynchronously submits changes made using an API context.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
changeSet | Microsoft.Restier.Core.Submit.ChangeSet | A change set, or null to submit existing pending changes. |
cancellationToken | System.Threading.CancellationToken | An optional cancellation token. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.Restier.Core.Submit.SubmitResult>
A task that represents the asynchronous operation whose result is a submit result.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
WriteCurrentVisibilityMatrix Extension
Extension method from
Microsoft.Restier.Breakdance.ApiBaseExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | The ApiBase instance to build the Visibility Matrix for. |
sourceDirectory | string | A string containing the relative or absolute path to use as the root. The default is "". If you want to be able to have it as part of the project, |
| so you can check it into source control, use ”..//..//”. | ||
suffix | string | A string to append to the Api name when writing the text file. |
markdown | bool | - |