This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Vertex | |
{ | |
public abstract string Label { get; } | |
} | |
public class Person : Vertex | |
{ | |
public override string Label => "Person"; | |
public Guid Id { get; set; } | |
public string FirstName { get; set; } | |
public string partitionKey => FirstName.Substring(0, 1); | |
} | |
public abstract class Edge | |
{ | |
public Guid Id { get; set; } | |
public abstract string Label { get; } | |
} | |
public class SiblingOf : Edge | |
{ | |
public override string Label => "Sibling Of"; | |
} | |
public class ChildOf : Edge | |
{ | |
public override string Label => "Child Of"; | |
} | |
public class MarriedTo : Edge | |
{ | |
public override string Label => "Married To"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment