Beispiel #1
0
        /// <summary>
        /// Fetches an existing
        /// child business object.
        /// </summary>
        /// <param name="parameters">
        /// Parameters passed to child fetch method.
        /// </param>
        public async Task <T> FetchChildAsync(params object[] parameters)
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return(await portal.FetchAsync <T>(parameters));
        }
Beispiel #2
0
        /// <summary>
        /// Fetches an existing
        /// child business object.
        /// </summary>
        public async Task <T> FetchChildAsync()
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return(await portal.FetchAsync <T>());
        }
Beispiel #3
0
 /// <summary>
 /// Fetchs and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to Fetch.
 /// </typeparam>
 public static async Task <T> FetchChildAsync <T>()
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return(await portal.FetchAsync <T>(EmptyCriteria.Instance));
 }
Beispiel #4
0
 /// <summary>
 /// Fetchs and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to Fetch.
 /// </typeparam>
 /// <param name="parameters">
 /// Parameters passed to child Fetch method.
 /// </param>
 public static async Task <T> FetchChildAsync <T>(params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return(await portal.FetchAsync <T>(parameters));
 }
Beispiel #5
0
 /// <summary>
 /// Fetchs and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to Fetch.
 /// </typeparam>
 public static async Task <T> FetchChildAsync <T>()
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return(await portal.FetchAsync <T>());
 }