Ejemplo n.º 1
0
 public static FileItem NewObject(ClientTransaction clientTransaction)
 {
     using (clientTransaction.EnterNonDiscardingScope())
     {
         return(DomainObject.NewObject <FileItem> ());
     }
 }
Ejemplo n.º 2
0
 public new static Customer NewObject()
 {
     return(DomainObject.NewObject <Customer> ());
 }
Ejemplo n.º 3
0
 public new static Partner NewObject()
 {
     return(DomainObject.NewObject <Partner> ());
 }
Ejemplo n.º 4
0
 public static Address NewObject()
 {
     return(DomainObject.NewObject <Address> ());
 }
Ejemplo n.º 5
0
 public new static DerivedClass NewObject()
 {
     return(DomainObject.NewObject <DerivedClass> ());
 }
 public new static DevelopmentPartner NewObject()
 {
     return(DomainObject.NewObject <DevelopmentPartner> ());
 }
Ejemplo n.º 7
0
 public static Ceo NewObject()
 {
     return(DomainObject.NewObject <Ceo> ());
 }
Ejemplo n.º 8
0
 public static Company NewObject()
 {
     return(DomainObject.NewObject <Company>());
 }
Ejemplo n.º 9
0
 public static Client NewObject()
 {
     return(DomainObject.NewObject <Client>());
 }
Ejemplo n.º 10
0
 public static Employee NewObject()
 {
     return(DomainObject.NewObject <Employee> ());
 }
Ejemplo n.º 11
0
 public static ClassWithoutProperties NewObject()
 {
     return(DomainObject.NewObject <ClassWithoutProperties> ());
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Returns a new instance of a concrete domain object for the current<see cref="DomainObjects.ClientTransaction"/>. The instance is constructed
 /// with a constructor accepting the given parameter list.
 /// </summary>
 /// <param name="constructorParameters">A <see cref="ParamList"/> object holding the parameters to be passed to the constructor. Instantiate this
 /// by using one of the <see cref="ParamList.Create{A1,A2}"/> methods.</param>
 /// <returns>A new <typeparamref name="TDomainObject"/> instance.</returns>
 /// <remarks>
 /// <para>
 /// This method is identical to <see cref="DomainObject.NewObject{T}(ParamList)"/>, but it can be called from any other class whereas
 /// <see cref="DomainObject.NewObject{T}(ParamList)"/> can only be called from classes derived from <see cref="DomainObject"/>.
 /// </para>
 /// </remarks>
 /// <seealso cref="DomainObject.NewObject{T}(ParamList)"/>
 /// <exception cref="ArgumentException">The type <typeparamref name="TDomainObject"/> cannot be extended to a proxy, for example because it is sealed
 /// or abstract and non-instantiable.</exception>
 /// <exception cref="MissingMethodException">The given type <typeparamref name="TDomainObject"/> does not implement the required protected
 /// constructor.
 /// </exception>
 public static TDomainObject NewObject(ParamList constructorParameters)
 {
     ArgumentUtility.CheckNotNull("constructorParameters", constructorParameters);
     return(DomainObject.NewObject <TDomainObject> (constructorParameters));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Returns a new instance of a concrete domain object for the current<see cref="DomainObjects.ClientTransaction"/>. The instance is constructed
 /// with the default constructor.
 /// </summary>
 /// <returns>A new <typeparamref name="TDomainObject"/> instance.</returns>
 /// <remarks>
 /// <para>
 /// This method is identical to <see cref="DomainObject.NewObject{T}()"/>, but it can be called from any other class whereas
 /// <see cref="DomainObject.NewObject{T}()"/> can only be called from classes derived from <see cref="DomainObject"/>.
 /// </para>
 /// </remarks>
 /// <seealso cref="DomainObject.NewObject{T}()"/>
 /// <exception cref="ArgumentException">The type <typeparamref name="TDomainObject"/> cannot be extended to a proxy, for example because it is sealed
 /// or abstract and non-instantiable.</exception>
 /// <exception cref="MissingMethodException">The given type <typeparamref name="TDomainObject"/> does not implement the required protected
 /// constructor.
 /// </exception>
 public static TDomainObject NewObject()
 {
     return(DomainObject.NewObject <TDomainObject>());
 }
Ejemplo n.º 14
0
 public static ConcreteClass NewObject()
 {
     return(DomainObject.NewObject <ConcreteClass> ());
 }
 public static ClassForRelationTest NewObject()
 {
     return(DomainObject.NewObject <ClassForRelationTest> ());
 }
Ejemplo n.º 16
0
 public static ClassWithUndefinedEnum NewObject()
 {
     return(DomainObject.NewObject <ClassWithUndefinedEnum> ());
 }
 public static ClassWithRelations NewObject()
 {
     return(DomainObject.NewObject <ClassWithRelations>());
 }
Ejemplo n.º 18
0
 public static Order NewObject()
 {
     return(DomainObject.NewObject <Order> ());
 }
Ejemplo n.º 19
0
 public static File NewObject()
 {
     return(DomainObject.NewObject <File>());
 }