/// <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))); }
/// <summary> /// Creates and loads an existing /// child business object. /// </summary> /// <typeparam name="T"> /// Type of business object to retrieve. /// </typeparam> public static T FetchChild <T>() { Server.ChildDataPortal portal = new Server.ChildDataPortal(); return((T)(portal.Fetch(typeof(T)))); }
/// <summary> /// Fetches an existing /// child business object. /// </summary> public T FetchChild() { var portal = new Server.ChildDataPortal(ApplicationContext); return((T)(portal.Fetch(typeof(T)))); }
/// <summary> /// Fetches an existing /// child business object. /// </summary> /// <param name="parameters"> /// Parameters passed to child fetch method. /// </param> public T FetchChild(params object[] parameters) { var portal = new Server.ChildDataPortal(ApplicationContext); return((T)(portal.Fetch(typeof(T), parameters))); }
/// <summary> /// Creates and loads an existing /// child business object. /// </summary> /// <typeparam name="T"> /// Type of business object to retrieve. /// </typeparam> public static T FetchChild <T>() { Server.ChildDataPortal portal = new Server.ChildDataPortal(); return((T)(portal.Fetch(typeof(T), EmptyCriteria.Instance))); }