C# Класс Stumps.Server.ContractEntityBinding

A helper class that provides a translation between contracts and entities.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateContractFromEntity ( string serverId, StumpEntity entity, IDataAccess dataAccess ) : StumpContract

Creates a Stump contract from a Stump data entity.

CreateEntityFromContract ( StumpContract contract ) : StumpEntity

Creates a Stump data entity from a Stump contract.

Приватные методы

Метод Описание
CreateNameValuePairFromHeaders ( IHttpHeaders headers ) : List

Creates a list of T:Stumps.Server.Data.NameValuePairEntity objects a T:Stumps.IHttpHeaders object.

Описание методов

CreateContractFromEntity() публичный статический Метод

Creates a Stump contract from a Stump data entity.
public static CreateContractFromEntity ( string serverId, StumpEntity entity, IDataAccess dataAccess ) : StumpContract
serverId string The unique identifier for the server.
entity Stumps.Server.Data.StumpEntity The used to create the contract.
dataAccess IDataAccess The data access provider used by the instance.
Результат StumpContract

CreateEntityFromContract() публичный статический Метод

Creates a Stump data entity from a Stump contract.
public static CreateEntityFromContract ( StumpContract contract ) : StumpEntity
contract StumpContract The used to create the entity.
Результат Stumps.Server.Data.StumpEntity