Beispiel #1
0
 /// <summary>
 /// Inserts, updates or deletes an existing
 /// child business object.
 /// </summary>
 /// <param name="child">
 /// Business object to update.
 /// </param>
 /// <param name="parameters">
 /// Parameters passed to child update method.
 /// </param>
 public static void UpdateChild(object child, params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     portal.Update(child, parameters);
 }
Beispiel #2
0
 /// <summary>
 /// Creates and loads an existing
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to retrieve.
 /// </typeparam>
 /// <param name="parameters">
 /// Parameters passed to child fetch method.
 /// </param>
 public static T FetchChild <T>(params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return((T)(portal.Fetch(typeof(T), parameters)));
 }