Ejemplo n.º 1
0
 public CityEntity(City City, params object[] args) : base(City)
 {
     foreach (object arg in args)
     {
         if (arg is Country Country)
         {
             CountryEntity = new CountryEntity(Country);
         }
         if (arg is ICollection <ShipmentDetail> ShipmentDetails)
         {
             ShipmentDetailEntities = ShipmentDetails.Select(model => new ShipmentDetailEntity(model, model.Country, model.Customer)).ToList();
         }
     }
 }
Ejemplo n.º 2
0
 public TaxEntity(Tax Tax, params object[] args) : base(Tax)
 {
     foreach (object arg in args)
     {
         if (arg is Category Category)
         {
             CategoryEntity = new CategoryEntity(Category);
         }
         if (arg is Country Country)
         {
             CountryEntity = new CountryEntity(Country);
         }
     }
 }
 public ShipmentDetailEntity(ShipmentDetail ShipmentDetail, params object[] args) : base(ShipmentDetail)
 {
     foreach (object arg in args)
     {
         if (arg is City City)
         {
             CityEntity = new CityEntity(City);
         }
         if (arg is Country Country)
         {
             CountryEntity = new CountryEntity(Country);
         }
         if (arg is Customer Customer)
         {
             CustomerEntity = new CustomerEntity(Customer);
         }
         if (arg is ICollection <Order> Orders)
         {
             OrderEntities = Orders.Select(model => new OrderEntity(model, model.Customer)).ToList();
         }
     }
 }