Skip to main content

Definition

Assembly: Microsoft.Restier.AspNetCore.dll Namespace: Microsoft.Restier.AspNetCore.Model Inheritance: System.Object

Syntax

Microsoft.Restier.AspNetCore.Model.RestierWebApiModelMapper

Summary

Represents a model mapper based on a DbContext.

Constructors

.ctor

Syntax

public RestierWebApiModelMapper()

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?

TryGetRelevantType

Tries to get the relevant type of an entity set, singleton, or composable function import.

Syntax

public bool TryGetRelevantType(Microsoft.Restier.Core.Model.ModelContext context, string name, out System.Type relevantType)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Model.ModelContextThe context for model mapper.
namestringThe name of an entity set, singleton or composable function import.
relevantTypeSystem.TypeWhen this method returns, provides the relevant type of the queryable source.

Returns

Type: bool true if the relevant type was provided; otherwise, false.

TryGetRelevantType

Tries to get the relevant type of a composable function.

Syntax

public bool TryGetRelevantType(Microsoft.Restier.Core.Model.ModelContext context, string namespaceName, string name, out System.Type relevantType)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Model.ModelContextThe context for model mapper.
namespaceNamestringThe name of a namespace containing a composable function.
namestringThe name of composable function.
relevantTypeSystem.TypeWhen this method returns, provides the relevant type of the composable function.

Returns

Type: bool true if the relevant type was provided; otherwise, false.
  • Microsoft.Restier.Core.Model.IModelMapper