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

Afficher le fichier Open project: Sage/SData-Contracts Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
TrimApostophes ( string resource ) : string

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

Private Methods

Méthode 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 méthode

public CRUD ( IRequest request ) : System
request IRequest
Résultat System

Create() public méthode

public Create ( FeedEntry entry ) : void
entry FeedEntry
Résultat void

Delete() public méthode

public Delete ( string id ) : void
id string
Résultat void

Read() public méthode

public Read ( string id ) : void
id string
Résultat void

TrimApostophes() protected méthode

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

Update() public méthode

public Update ( FeedEntry entry, string id ) : void
entry FeedEntry
id string
Résultat void