Created
July 30, 2012 07:27
-
-
Save gra-moore/3205503 to your computer and use it in GitHub Desktop.
GEDCOM Interface definition
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
namespace BrightstarDB.Gedcom | |
{ | |
[Entity] | |
public interface IFamily | |
{ | |
IMarriageEvent MarriageEvent { get; set; } | |
IIndividual Husband { get; set; } | |
IIndividual Wife { get; set; } | |
ICollection<IIndividual> Children { get; set; } | |
} | |
[Entity] | |
public interface IMarriageEvent | |
{ | |
string Place { get; set; } | |
string Date { get; set; } | |
} | |
[Entity] | |
public interface IIndividual | |
{ | |
string Id { get; } | |
string Name { get; set; } | |
string Sex { get; set; } | |
IBirthEvent BirthEvent { get; set; } | |
IDeathEvent DeathEvent { get; set; } | |
IEnumerable<IFamily> SpouseFamilies(); | |
} | |
[Entity] | |
public interface IBirthEvent | |
{ | |
string Place { get; set; } | |
string Date { get; set; } | |
} | |
[Entity] | |
public interface IDeathEvent | |
{ | |
string Place { get; set; } | |
string Date { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment