Example #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 async Task UpdateChildAsync(T child, params object[] parameters)
 {
     var portal = new Server.ChildDataPortal(ApplicationContext);
     await portal.UpdateAsync(child, parameters).ConfigureAwait(false);
 }
Example #2
0
 /// <summary>
 /// Creates and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to create.
 /// </typeparam>
 public static T CreateChild <T>()
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return((T)(portal.Create(typeof(T))));
 }
Example #3
0
        /// <summary>
        /// Inserts, updates or deletes an existing
        /// child business object.
        /// </summary>
        /// <param name="child">
        /// Business object to update.
        /// </param>
        public void UpdateChild(T child)
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            portal.Update(child);
        }
Example #4
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 void UpdateChild(T child, params object[] parameters)
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            portal.Update(child, parameters);
        }
Example #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>());
 }
Example #6
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));
        }
Example #7
0
        /// <summary>
        /// Fetches an existing
        /// child business object.
        /// </summary>
        public T FetchChild()
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return((T)(portal.Fetch(typeof(T))));
        }
Example #8
0
 /// <summary>
 /// Inserts, updates or deletes an existing
 /// child business object.
 /// </summary>
 /// <param name="child">
 /// Business object to update.
 /// </param>
 public static void UpdateChild(object child)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     portal.Update(child);
 }
Example #9
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 async Task UpdateChildAsync(object child, params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     await portal.UpdateAsync(child, parameters).ConfigureAwait(false);
 }
Example #10
0
        /// <summary>
        /// Creates and initializes a new
        /// child business object.
        /// </summary>
        public T CreateChild()
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return((T)(portal.Create(typeof(T))));
        }
Example #11
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));
 }
Example #12
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));
 }
Example #13
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)));
 }
Example #14
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))));
 }
Example #15
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)));
        }
Example #16
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)));
 }
Example #17
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>());
        }
Example #18
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);
 }
Example #19
0
 /// <summary>
 /// Creates and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to create.
 /// </typeparam>
 public static async Task <T> CreateChildAsync <T>()
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return(await portal.CreateAsync <T>());
 }