コード例 #1
0
 public static Buyer getFromDTO(BuyerDTO a)
 {
     return(new Buyer()
     {
         Id = a.Id, Name = a.Name
     });
 }
コード例 #2
0
 public static BuyerDTO[] getDTO(Buyer[] Buyere)
 {
     BuyerDTO[] Buyerdtos = new BuyerDTO[Buyere.Length];
     for (int i = 0; i < Buyere.Length; i++)
     {
         Buyerdtos[i] = getDTO(Buyere[i]);
     }
     return(Buyerdtos);
 }