Skip to content

Instantly share code, notes, and snippets.

@gra-moore
Created July 30, 2012 07:27
Show Gist options
  • Save gra-moore/3205503 to your computer and use it in GitHub Desktop.
Save gra-moore/3205503 to your computer and use it in GitHub Desktop.
GEDCOM Interface definition
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