/// <summary>
 /// Constructor, that accepts data from an existing builder
 /// </summary>
 /// <param name="builder">Builder</param>
 public Builder(Builder builder)
 {
     if (builder != null)
     {
         this.id     = builder.Id;
         this.entity = new LegalEntity();
         this.active = builder.Active;
     }
     else
     {
         this.id     = 0;
         this.entity = new LegalEntity();
         this.active = false;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor, that accepts data from an existing Indexed Entrepeneur
 /// </summary>
 /// <param name="entrepeneur">IndexedEntrepeneur</param>
 public Entrepeneur(IndexedEntrepeneur entrepeneur)
 {
     if (entrepeneur == null)
     {
         entrepeneur = new IndexedEntrepeneur();
     }
     this.id          = entrepeneur.Id;
     this.entity      = entrepeneur.Entity;
     this.craftGroup1 = entrepeneur.CraftGroup1;
     this.craftGroup2 = entrepeneur.CraftGroup2;
     this.craftGroup3 = entrepeneur.CraftGroup3;
     this.craftGroup4 = entrepeneur.CraftGroup4;
     this.region      = entrepeneur.Region;
     this.countryWide = entrepeneur.CountryWide;
     this.cooperative = entrepeneur.Cooperative;
     this.active      = entrepeneur.Active;
 }
 /// <summary>
 /// Costructor to add a a new builder
 /// </summary>
 /// <param name="entity">LegalEntity</param>
 /// <param name="active">bool</param>
 public Builder(LegalEntity entity, bool active)
 {
     this.id     = 0;
     this.entity = entity;
     this.active = active;
 }
 /// <summary>
 /// Costructor to add a a builder from Db to list
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="entity">LegalEntity</param>
 /// <param name="active">bool</param>
 public Builder(int id, LegalEntity entity, bool active)
 {
     this.id     = id;
     this.entity = entity;
     this.active = active;
 }
 /// <summary>
 /// Empty Constructor
 /// </summary>
 public Builder()
 {
     this.id     = 0;
     this.entity = new LegalEntity();
     this.active = false;
 }