예제 #1
0
 public DbProvider(
     DbConnection connection,
     IVertexStoreRawSqlProvider vertexSqlProv,
     IEdgeStoreRawSqlProvider edgeSqlProv,
     bool useLookupTable = false)
 {
     vertexStore         = new SqlVertexStore <ConcreteDbCommand>(connection, this, vertexSqlProv);
     edgeStore           = new SqlEdgeStore <ConcreteDbCommand>(connection, this, edgeSqlProv);
     this.connection     = connection;
     this.useLookupTable = useLookupTable;
 }
예제 #2
0
 public SqlGraph(DbProvider <ConcreteCommand> p,
                 Func <IVertex, IEnumerable <IndexedString> > indexConstructionLogic = null)
     : base(p.VertexStore, p.EdgeStore, indexConstructionLogic)
 {
     vertexStore = p.VertexStore;
 }