Ejemplo n.º 1
0
 public FarmerEntityDto(ServersideFarmerEntity model)
 {
     Id                   = model.Id;
     Created              = model.Created;
     Modified             = model.Modified;
     TradingPostListingss = model.TradingPostListingss.Select(TradingPostListingEntityDto.Convert).ToList();
     Farmss               = model.Farmss == null ? null :FarmersFarmsDto.Convert(model.Farmss);
 }
Ejemplo n.º 2
0
 public ServersideFarmerEntity GetServersideFarmerEntity()
 {
     return(new ServersideFarmerEntity
     {
         Id = Id,
         Created = Created,
         Modified = Modified,
         TradingPostListingss = TradingPostListingss?.Select(TradingPostListingEntityDto.Convert).ToList(),
         Farmss = Farmss == null ? null :FarmersFarmsDto.Convert(Farmss),
     });
 }
Ejemplo n.º 3
0
 public FarmEntityDto(ServersideFarmEntity model)
 {
     Id       = model.Id;
     Created  = model.Created;
     Modified = model.Modified;
     Code     = model.Code;
     Name     = model.Name;
     State    = model.State;
     Pickupss = model.Pickupss.Select(MilkTestEntityDto.Convert).ToList();
     Farmerss = model.Farmerss == null ? null :FarmersFarmsDto.Convert(model.Farmerss);
 }
Ejemplo n.º 4
0
 public ServersideFarmEntity GetServersideFarmEntity()
 {
     return(new ServersideFarmEntity
     {
         Id = Id,
         Created = Created,
         Modified = Modified,
         Code = Code,
         Name = Name,
         State = State,
         Pickupss = Pickupss?.Select(MilkTestEntityDto.Convert).ToList(),
         Farmerss = Farmerss == null ? null :FarmersFarmsDto.Convert(Farmerss),
     });
 }