8000 GitHub - flq/neocaster: A micro "ORM" in the spirit of Dapper, but for Neo4J
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

flq/neocaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeoCaster - Load Neo4J Data into .NET Objects quick and easy.

Build status

At the time of this writing only the basic Neo4J-Driver exists in the .NET space. I thought that it is kind of sad that only JVM-developers would have good programmatic access to the fun that writing programs with NEO4J is.

Neo4J is arguably one of the most important (& interesting) graph databases we can get our hands on.

It helps you work with data where the relationships between data is as important as the actual data itself. People use it to build product databases or gather insights into datasets.

That's why in Neo4J we have not only nodes (with properties) as first-class citizens, but relationships, too!

Based on the provided driver which allows access to a Neo4J database through their binary bolt-Protocol, this library sets out to bridge the raw data coming out of Cypher (The SQL pendant in Neo4J-parlor) into .NET classes. Here's a simple example:

IEnumerable<Person> people = 
  driver.OpenSession().Query<Person>("MATCH (p:Person) RETURN p");

This library is heavily inspired by Dapper, the Micro-ORM provided by the wonderful devs at StackExchange, which makes it easy to use your SQL-superpowers and quickly map the results into .NET classes.

Usage

Contributing

Requirements

Development has been tested with Visual Studio 2017 so far. Also, it is advised to install the .NET core SDK v2.0, which you can download here.

Using the tests

A number of tests depend on a running neo4j instance. Neocaster recommends using a docker container for tests as it will ensure that any data created during tests is removed after testing.

First, create a fitting container:

docker run --publish=7474:7474 --publish=7687:7687 --env=NEO4J_AUTH=none --name neocaster_tests neo4j

Then, you can start and stop that container for testing:

docker start neocaster_tests, docker stop neocaster_tests

About

A micro "ORM" in the spirit of Dapper, but for Neo4J

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0