TheGeneGenieProject / GeneGenie.Gedcom

A .Net library for loading, saving, working with and analysing family trees stored in the GEDCOM format.
GNU Affero General Public License v3.0
52 stars 23 forks source link

Look at simplifying the API as it is too complex. #14

Open RyanONeill1970 opened 7 years ago

RyanONeill1970 commented 7 years ago

To add an individual to the in memory database we just add a new GedcomIndividualRecord. To add sub records (birth, names etc) we add those to the individual but also have to pass the db as well.

We could adopt a fluent API approach and also have it so that when a sub record is added, it inherits the database from the parent record.

HolyOne commented 1 year ago

I agree. At least helper methods like GetSibblings() , GetParents() wıould be nice. Also calculating the relationship between 2 individuals would be helpful (Like x is 3rd cousin of y)