C# Class Sage.Integration.Northwind.Adapter.Common.Handler.CRUD

Exibir arquivo Open project: Sage/SData-Contracts Class Usage Examples

Public Methods

Method Description
CRUD ( IRequest request ) : System
Create ( FeedEntry entry ) : void
Delete ( string id ) : void
Read ( string id ) : void
Update ( FeedEntry entry, string id ) : void

Protected Methods

Method Description
TrimApostophes ( string resource ) : string

Helper Method, because the Framework can't handle an ID-Template with apostophes

Private Methods

Method Description
GetDiagnosis ( SdataTransactionResult result ) : Diagnosis
HandlePaging ( IRequest request, Feed result, string ids ) : void
IsValid ( FeedEntry newEntry ) : bool

Helper Method, because the Framework handles emtpy entry elements () as...well...empty entries (and not null)

isActive ( FeedEntry feedEntry ) : bool

Method Details

CRUD() public method

public CRUD ( IRequest request ) : System
request IRequest
return System

Create() public method

public Create ( FeedEntry entry ) : void
entry FeedEntry
return void

Delete() public method

public Delete ( string id ) : void
id string
return void

Read() public method

public Read ( string id ) : void
id string
return void

TrimApostophes() protected method

Helper Method, because the Framework can't handle an ID-Template with apostophes
protected TrimApostophes ( string resource ) : string
resource string
return string

Update() public method

public Update ( FeedEntry entry, string id ) : void
entry FeedEntry
id string
return void