Inheritance: Repository
Example #1
0
 public static Node Get(int id)
 {
     try
     {
         Persistance.NodeRepo db = new Persistance.NodeRepo();
         return(db.GetNode(id.ToString()));
     }
     catch (System.Net.WebException ex)
     {
         throw new Exceptions.NodeNotFoundException(ex, id);
     }
 }
Example #2
0
 public static Node Get(int id)
 {
     try
     {
         Persistance.NodeRepo db = new Persistance.NodeRepo();
         return db.GetNode(id.ToString());
     }
     catch (System.Net.WebException ex)
     {
         throw new Exceptions.NodeNotFoundException(ex,id);
     }
 }
Example #3
0
 private Relationship()
 {
     _relationshipRepo = new RelationShipRepo();
     _nodeRepo = new NodeRepo();
     base.SetRepository(_relationshipRepo);
 }
Example #4
0
 public static Node Get(string location)
 {
     Persistance.NodeRepo db = new Persistance.NodeRepo();
     return(db.GetNode(new Uri(location)));
 }
Example #5
0
 public Node()
 {
     _nodeRepo         = new Persistance.NodeRepo();
     _relationShipRepo = new Persistance.RelationShipRepo();
     base.SetRepository(_nodeRepo);
 }
Example #6
0
 public static Node Get(string location)
 {
     Persistance.NodeRepo db = new Persistance.NodeRepo();
     return db.GetNode(new Uri(location));
 }
Example #7
0
 public Node()
 {
     _nodeRepo = new Persistance.NodeRepo();
     _relationShipRepo = new Persistance.RelationShipRepo();
     base.SetRepository(_nodeRepo);
 }