Beispiel #1
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)));
 }
Beispiel #2
0
 /// <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))));
 }
Beispiel #3
0
        /// <summary>
        /// Fetches an existing
        /// child business object.
        /// </summary>
        public T FetchChild()
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return((T)(portal.Fetch(typeof(T))));
        }
Beispiel #4
0
        /// <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)));
        }
Beispiel #5
0
 /// <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)));
 }