Database Reference
In-Depth Information
.NET Application Configuration
Before diving into the code examples, you need to update the configuration for the .Net application. In Visual Studio,
open the file Web.config and edit the GraphStory connection string information. If you are using a free account from
graphstory.com , you will change the username, password, and URL in Listing 7-10 with the one provided in your
graph console on graphstory.com .
Listing 7-10. Database Connection Setting in Web.config
<connectionStrings>
<add name="graphStory" connectionString="https://username:password@theURL:7473/db/data" />
</connectionStrings>
If you have installed a local Neo4j server instance, you can modify the configuration to use the local address and
port that you specified during the installation, as in Listing 7-11.
Listing 7-11. Database Connection Setting in Web.config for a Local Instance of Neo4j
<connectionStrings>
<add name="graphStory" connectionString="http://localhost:7474/db/data" />
</connectionStrings>
Once the environment is properly configured and started, you can open and run the application by hitting F5,
and then you should see a page like the one shown in Figure 7-2 .
Figure 7-2. The .NET sample application home page
 
Search WWH ::




Custom Search