C# Class Sage.Integration.Northwind.Adapter.Data.SalesOrderFeedEntryWrapper

Inheritance: EntityWrapperBase, IEntityQueryWrapper, IFeedEntryEntityWrapper
Show file Open project: Sage/SData-Contracts Class Usage Examples

Public Methods

Method Description
Add ( Sage payload ) : SdataTransactionResult
Delete ( string localID ) : SdataTransactionResult
GetDbFieldName ( string propertyName ) : string
GetFeedEntry ( string idString ) : Sage.Common.Syndication.FeedEntry
GetTransformedDocument ( Sage payload ) : Application.Base.Document
GetTransformedPayload ( Application document ) : Sage.Common.Syndication.FeedEntry
SalesOrderFeedEntryWrapper ( RequestContext context ) : System
Update ( Sage payload ) : SdataTransactionResult

Protected Methods

Method Description
GetSDataId ( string id, SupportedResourceKinds resourceKind ) : string

Private Methods

Method Description
GetLineItem ( Sage row, NorthwindConfig config ) : SalesOrderLineFeedEntry
GetLocalId ( System.Guid uuid, SupportedResourceKinds resKind ) : string
GetLocalId ( string uuidString, SupportedResourceKinds resKind ) : string
GetPayload ( Sage row, Sage detailDataTable, NorthwindConfig config ) : SalesOrderFeedEntry
GetUuid ( string localId, string uuidString, SupportedResourceKinds resKind ) : Guid
SetCommonProperties ( string idString, FeedEntry entry, SupportedResourceKinds resKind ) : void

Method Details

Add() public method

public Add ( Sage payload ) : SdataTransactionResult
payload Sage
return Sage.Integration.Northwind.Adapter.Common.SdataTransactionResult

Delete() public method

public Delete ( string localID ) : SdataTransactionResult
localID string
return Sage.Integration.Northwind.Adapter.Common.SdataTransactionResult

GetDbFieldName() public method

public GetDbFieldName ( string propertyName ) : string
propertyName string
return string

GetFeedEntry() public method

public GetFeedEntry ( string idString ) : Sage.Common.Syndication.FeedEntry
idString string
return Sage.Common.Syndication.FeedEntry

GetSDataId() protected method

protected GetSDataId ( string id, SupportedResourceKinds resourceKind ) : string
id string
resourceKind SupportedResourceKinds
return string

GetTransformedDocument() public method

public GetTransformedDocument ( Sage payload ) : Application.Base.Document
payload Sage
return Application.Base.Document

GetTransformedPayload() public method

public GetTransformedPayload ( Application document ) : Sage.Common.Syndication.FeedEntry
document Application
return Sage.Common.Syndication.FeedEntry

SalesOrderFeedEntryWrapper() public method

public SalesOrderFeedEntryWrapper ( RequestContext context ) : System
context RequestContext
return System

Update() public method

public Update ( Sage payload ) : SdataTransactionResult
payload Sage
return SdataTransactionResult