public static void GetChildren <T>(this SQLiteConnection conn, ref T element) where T : new() { foreach (var relationshipProperty in typeof(T).GetRelationshipProperties()) { conn.GetChild(ref element, relationshipProperty); } }
public static void GetChild <T>(this SQLiteConnection conn, ref T element, string relationshipProperty) { conn.GetChild(ref element, typeof(T).GetProperty(relationshipProperty)); }