I have a relatively complex entity model that is based on Contracts (Interfaces) and am looking for thoughts on the best way to use Neo4j to store the entities. Has anyone tried to do this?
Example model. The idea would be to support storing the user object which contains an IAddress.
public interface IAddress {
string Line1 { get; set; }
string Line2 { get; set; }
}
public interface IUser {
string Name { get; set; }
IAddress Address { get; set; }
}
public Address : IAddress {
public string Line1 { get; set; }
public string Line2 { get; set; }
}
public class User : IUser {
public User() {
Address = new Address();
}
public string Name { get; set; }
public IAddress Address { get; set; }
}