Example #1
0
 public override void ValoresPorDefecto(BusinessBase origen)
 {
     if (origen == null)
     {
         return;
     }
     if (origen is Empresa)
     {
         this["Razon"] = origen["Razon"];
     }
     if (this["Razon"] is DBNull && origen.ObjetoAsociado("Empresa") != null)
     {
         this["Razon"] = origen.ObjetoAsociado("Empresa")["Razon"];
     }
     base.ValoresPorDefecto(origen);
 }