Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public static void GetChild <T>(this SQLiteConnection conn, ref T element, string relationshipProperty)
 {
     conn.GetChild(ref element, typeof(T).GetProperty(relationshipProperty));
 }