Ejemplo n.º 1
0
        /// <summary>
        /// Creates and initializes a new
        /// child business object.
        /// </summary>
        /// <param name="parameters">
        /// Parameters passed to child create method.
        /// </param>
        public async Task <T> CreateChildAsync(params object[] parameters)
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return(await portal.CreateAsync <T>(parameters));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates and initializes a new
        /// child business object.
        /// </summary>
        public async Task <T> CreateChildAsync()
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return(await portal.CreateAsync <T>());
        }
Ejemplo n.º 3
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>(EmptyCriteria.Instance));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates and initializes a new
 /// child business object.
 /// </summary>
 /// <typeparam name="T">
 /// Type of business object to create.
 /// </typeparam>
 /// <param name="parameters">
 /// Parameters passed to child create method.
 /// </param>
 public static async Task <T> CreateChildAsync <T>(params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return(await portal.CreateAsync <T>(parameters));
 }
Ejemplo n.º 5
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>());
 }