Esempio n. 1
0
 public static FileItem NewObject(ClientTransaction clientTransaction)
 {
     using (clientTransaction.EnterNonDiscardingScope())
     {
         return(DomainObject.NewObject <FileItem> ());
     }
 }
Esempio n. 2
0
 public new static Customer NewObject()
 {
     return(DomainObject.NewObject <Customer> ());
 }
Esempio n. 3
0
 public new static Partner NewObject()
 {
     return(DomainObject.NewObject <Partner> ());
 }
Esempio n. 4
0
 public static Address NewObject()
 {
     return(DomainObject.NewObject <Address> ());
 }
Esempio n. 5
0
 public new static DerivedClass NewObject()
 {
     return(DomainObject.NewObject <DerivedClass> ());
 }
 public new static DevelopmentPartner NewObject()
 {
     return(DomainObject.NewObject <DevelopmentPartner> ());
 }
Esempio n. 7
0
 public static Ceo NewObject()
 {
     return(DomainObject.NewObject <Ceo> ());
 }
Esempio n. 8
0
 public static Company NewObject()
 {
     return(DomainObject.NewObject <Company>());
 }
Esempio n. 9
0
 public static Client NewObject()
 {
     return(DomainObject.NewObject <Client>());
 }
Esempio n. 10
0
 public static Employee NewObject()
 {
     return(DomainObject.NewObject <Employee> ());
 }
Esempio n. 11
0
 public static ClassWithoutProperties NewObject()
 {
     return(DomainObject.NewObject <ClassWithoutProperties> ());
 }
Esempio 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));
 }
Esempio 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>());
 }
Esempio n. 14
0
 public static ConcreteClass NewObject()
 {
     return(DomainObject.NewObject <ConcreteClass> ());
 }
 public static ClassForRelationTest NewObject()
 {
     return(DomainObject.NewObject <ClassForRelationTest> ());
 }
Esempio n. 16
0
 public static ClassWithUndefinedEnum NewObject()
 {
     return(DomainObject.NewObject <ClassWithUndefinedEnum> ());
 }
 public static ClassWithRelations NewObject()
 {
     return(DomainObject.NewObject <ClassWithRelations>());
 }
Esempio n. 18
0
 public static Order NewObject()
 {
     return(DomainObject.NewObject <Order> ());
 }
Esempio n. 19
0
 public static File NewObject()
 {
     return(DomainObject.NewObject <File>());
 }