C# 클래스 EPiCode.Relations.Core.RelationProviders.RelationProviderBase

상속: System.Configuration.Provider.ProviderBase
파일 보기 프로젝트 열기: BVNetwork/Relations 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_description string
_name string

공개 메소드들

메소드 설명
AddRelation ( string rule, int pageLeft, int pageRight ) : void

Create a new relation between two pages in EPi

DeleteAll ( ) : void

Delete all rules

DeleteAll ( string rule ) : void

Delete all relations of a given rule

DeleteRelation ( Relation relationToDelete ) : void

Delete single relation

GetAllRelations ( string rule ) : List

Get all relations of a given rule

GetRelation ( Identity id ) : Relation

Get single relation

GetRelation ( string rule, int pageLeft, int pageRight ) : Relation

Get single relation

GetRelationPagesForPage ( int pageID, Rule rule ) : List

Get related page IDs for page

GetRelationPagesForPage ( int pageID, Rule rule, Rule direction ) : List

Get a list of all related pages through one direction of a given rule

GetRelationsCount ( string rule ) : int

Get number of relations for a rule

GetRelationsForPage ( int pageID ) : List

Get relations for given page

GetRelationsForPage ( int pageID, Rule rule ) : List

Get relations for given page

GetRelationsForPage ( int pageID, Rule rule, Rule dir ) : List

Get all page relations for the rule through a specific direction

GetRelationsForPageTwoHop ( int pageID, Rule firstRule, Rule firstDirection, Rule secondRule, Rule secondDirection ) : List

Get a list of all related pages through one direction of two given rules

RaiseOnAddedRelation ( RelationEventArgs e ) : void
RaiseOnAddingRelation ( RelationEventArgs e ) : void
RaiseOnDeletedRelation ( RelationEventArgs e ) : void
RaiseOnDeletingRelation ( RelationEventArgs e ) : void
RelationExists ( string rule, int pageLeft, int pageRight ) : bool

Check if a relation already exists

Save ( Relation relation ) : void

Save relation

메소드 상세

AddRelation() 공개 추상적인 메소드

Create a new relation between two pages in EPi
public abstract AddRelation ( string rule, int pageLeft, int pageRight ) : void
rule string Rule to use for new relation
pageLeft int Left side page
pageRight int Right side page
리턴 void

DeleteAll() 공개 추상적인 메소드

Delete all rules
public abstract DeleteAll ( ) : void
리턴 void

DeleteAll() 공개 추상적인 메소드

Delete all relations of a given rule
public abstract DeleteAll ( string rule ) : void
rule string
리턴 void

DeleteRelation() 공개 추상적인 메소드

Delete single relation
public abstract DeleteRelation ( Relation relationToDelete ) : void
relationToDelete Relation Relation to be deleted
리턴 void

GetAllRelations() 공개 추상적인 메소드

Get all relations of a given rule
public abstract GetAllRelations ( string rule ) : List
rule string Name of rule
리턴 List

GetRelation() 공개 추상적인 메소드

Get single relation
public abstract GetRelation ( Identity id ) : Relation
id Identity Relation ID
리턴 Relation

GetRelation() 공개 추상적인 메소드

Get single relation
public abstract GetRelation ( string rule, int pageLeft, int pageRight ) : Relation
rule string Rule
pageLeft int Left page
pageRight int Right page
리턴 Relation

GetRelationPagesForPage() 공개 추상적인 메소드

Get related page IDs for page
public abstract GetRelationPagesForPage ( int pageID, Rule rule ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
리턴 List

GetRelationPagesForPage() 공개 추상적인 메소드

Get a list of all related pages through one direction of a given rule
public abstract GetRelationPagesForPage ( int pageID, Rule rule, Rule direction ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
direction Rule Direction to search through
리턴 List

GetRelationsCount() 공개 추상적인 메소드

Get number of relations for a rule
public abstract GetRelationsCount ( string rule ) : int
rule string Rule to get number of relations of
리턴 int

GetRelationsForPage() 공개 추상적인 메소드

Get relations for given page
public abstract GetRelationsForPage ( int pageID ) : List
pageID int Page ID to fetch relations from
리턴 List

GetRelationsForPage() 공개 추상적인 메소드

Get relations for given page
public abstract GetRelationsForPage ( int pageID, Rule rule ) : List
pageID int Page ID to fetch relations from
rule Rule Relation rule to use
리턴 List

GetRelationsForPage() 공개 추상적인 메소드

Get all page relations for the rule through a specific direction
public abstract GetRelationsForPage ( int pageID, Rule rule, Rule dir ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
dir Rule
리턴 List

GetRelationsForPageTwoHop() 공개 추상적인 메소드

Get a list of all related pages through one direction of two given rules
public abstract GetRelationsForPageTwoHop ( int pageID, Rule firstRule, Rule firstDirection, Rule secondRule, Rule secondDirection ) : List
pageID int
firstRule Rule
firstDirection Rule
secondRule Rule
secondDirection Rule
리턴 List

RaiseOnAddedRelation() 공개 메소드

public RaiseOnAddedRelation ( RelationEventArgs e ) : void
e RelationEventArgs
리턴 void

RaiseOnAddingRelation() 공개 메소드

public RaiseOnAddingRelation ( RelationEventArgs e ) : void
e RelationEventArgs
리턴 void

RaiseOnDeletedRelation() 공개 메소드

public RaiseOnDeletedRelation ( RelationEventArgs e ) : void
e RelationEventArgs
리턴 void

RaiseOnDeletingRelation() 공개 메소드

public RaiseOnDeletingRelation ( RelationEventArgs e ) : void
e RelationEventArgs
리턴 void

RelationExists() 공개 추상적인 메소드

Check if a relation already exists
public abstract RelationExists ( string rule, int pageLeft, int pageRight ) : bool
rule string Rule to check
pageLeft int Left page to check
pageRight int Right page to check
리턴 bool

Save() 공개 추상적인 메소드

Save relation
public abstract Save ( Relation relation ) : void
relation Relation Relation to be saved
리턴 void

프로퍼티 상세

_description 보호되어 있는 프로퍼티

protected string _description
리턴 string

_name 보호되어 있는 프로퍼티

protected string _name
리턴 string