public Add_Parent_Aggregation ( Item_Aggregation_Related_Aggregations Parent_Aggregation ) : void | ||
Parent_Aggregation | Item_Aggregation_Related_Aggregations | New parent aggregation |
return | void |
/// <summary> Adds the child information to the item aggregation object from the datatable extracted from the database </summary> /// <param name="AggrInfo">Partially built item aggregation object</param> /// <param name="ParentInfo">Datatable from database calls with parent item aggregation information ( from SobekCM_Get_Item_Aggregation only )</param> private static void add_parents(Complete_Item_Aggregation AggrInfo, DataTable ParentInfo) { foreach (DataRow parentRow in ParentInfo.Rows) { Item_Aggregation_Related_Aggregations parentObject = new Item_Aggregation_Related_Aggregations(parentRow[0].ToString(), parentRow[1].ToString(), parentRow[3].ToString(), Convert.ToBoolean(parentRow[4]), false); AggrInfo.Add_Parent_Aggregation(parentObject); } }