コード例 #1
0
 public static GremlinqSetup UseGremlinServer <TVertex, TEdge>(this GremlinqSetup setup)
 {
     return(setup
            .UseGremlinServer()
            .UseModel(GraphModel
                      .FromBaseTypes <TVertex, TEdge>(lookup => lookup
                                                      .IncludeAssembliesOfBaseTypes())));
 }
コード例 #2
0
 public static GremlinqSetup UseGremlinServer <TVertex, TEdge>(this GremlinqSetup setup, Action <ProviderSetup <IGremlinServerConfigurator> >?extraSetupAction = null)
 {
     return(setup
            .UseGremlinServer(extraSetupAction)
            .ConfigureEnvironment(env => env
                                  .UseModel(GraphModel
                                            .FromBaseTypes <TVertex, TEdge>(lookup => lookup
                                                                            .IncludeAssembliesOfBaseTypes()))));
 }