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); } }
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); } }
private Relationship() { _relationshipRepo = new RelationShipRepo(); _nodeRepo = new NodeRepo(); base.SetRepository(_relationshipRepo); }
public static Node Get(string location) { Persistance.NodeRepo db = new Persistance.NodeRepo(); return(db.GetNode(new Uri(location))); }
public Node() { _nodeRepo = new Persistance.NodeRepo(); _relationShipRepo = new Persistance.RelationShipRepo(); base.SetRepository(_nodeRepo); }
public static Node Get(string location) { Persistance.NodeRepo db = new Persistance.NodeRepo(); return db.GetNode(new Uri(location)); }