Exemple #1
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 T CreateChild <T>(params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     return((T)(portal.Create(typeof(T), parameters)));
 }
Exemple #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))));
 }
Exemple #3
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))));
        }
Exemple #4
0
        /// <summary>
        /// Creates and initializes a new
        /// child business object.
        /// </summary>
        /// <param name="parameters">
        /// Parameters passed to child create method.
        /// </param>
        public T CreateChild(params object[] parameters)
        {
            var portal = new Server.ChildDataPortal(ApplicationContext);

            return((T)(portal.Create(typeof(T), parameters)));
        }
Exemple #5
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), EmptyCriteria.Instance)));
 }