Esempio n. 1
0
 /// <summary> CTor</summary>
 /// <param name="validator">The custom validator object for this ProductEntity</param>
 public ProductEntity(ProductValidator validator)
     : base("ProductEntity")
 {
     InitClassEmpty(validator, CreateFields());
 }
Esempio n. 2
0
 /// <summary> CTor</summary>
 /// <param name="id">PK value for Product which data should be fetched into this Product object</param>
 /// <param name="validator">The custom validator object for this ProductEntity</param>
 /// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
 public ProductEntity(System.Int32 id, ProductValidator validator)
     : base("ProductEntity")
 {
     InitClassEmpty(validator, CreateFields());
     this.Id = id;
 }