示例#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)));
 }
示例#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))));
 }
示例#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))));
        }
示例#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)));
        }
示例#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)));
 }