C# Class mergedServices.ObjectsRelationManager

Afficher le fichier Open project: sherifkandeel/weet-it_WCF

Méthodes publiques

Méthode Description
closeConnection ( ) : void

closes the connection of the server

generateQueries ( string object1, string object2, int maxDistance = 3, int limit = 50, List ignoredObjects = null, List ignoredProperties = null, int avoidCycles = 1 ) : bool

Builds and returns a set of queries to find relations between two object1 and object2.

getNextResult ( ) : string

Query the next result

startConnection ( ) : void

starts the connection to the server

Method Details

closeConnection() public méthode

closes the connection of the server
public closeConnection ( ) : void
Résultat void

generateQueries() public méthode

Builds and returns a set of queries to find relations between two object1 and object2.
public generateQueries ( string object1, string object2, int maxDistance = 3, int limit = 50, List ignoredObjects = null, List ignoredProperties = null, int avoidCycles = 1 ) : bool
object1 string object1
object2 string object2
maxDistance int MaxiumDistance between the two objects
limit int Limit of results
ignoredObjects List List of strings of names of objects be ignored in the Queries
ignoredProperties List List of strings of names of properties to be ignored in the Queries
avoidCycles int Integer value which indicates whether we want to suppress cycles , 0 = no cycle avoidance , 1 = no intermediate object can be object1 or object2 , 2 = like 1 + an object can not occur more than once in a connection
Résultat bool

getNextResult() public méthode

Query the next result
public getNextResult ( ) : string
Résultat string

startConnection() public méthode

starts the connection to the server
public startConnection ( ) : void
Résultat void