当前位置: 首页>>代码示例>>C#>>正文


C# Common.ConvertToEntity方法代码示例

本文整理汇总了C#中Common.ConvertToEntity方法的典型用法代码示例。如果您正苦于以下问题:C# Common.ConvertToEntity方法的具体用法?C# Common.ConvertToEntity怎么用?C# Common.ConvertToEntity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Common的用法示例。


在下文中一共展示了Common.ConvertToEntity方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InsertReservation

 public void InsertReservation(Common.DataTransferObjects.ReservationDto reservationDto)
 {
     WriteActualMethod();
     Reservation reservation = reservationDto.ConvertToEntity();
     provider.InsertReservation(reservation);
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:6,代码来源:AutoReservationService.cs

示例2: InsertAuto

 public void InsertAuto(Common.DataTransferObjects.AutoDto autoDto)
 {
     WriteActualMethod();
     Auto auto = autoDto.ConvertToEntity();
     provider.InsertAuto(auto);
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:6,代码来源:AutoReservationService.cs

示例3: InsertKunde

 public void InsertKunde(Common.DataTransferObjects.KundeDto kundeDto)
 {
     WriteActualMethod();
     Kunde kunde = kundeDto.ConvertToEntity();
     provider.InsertKunde(kunde);
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:6,代码来源:AutoReservationService.cs

示例4: UpdateKunde

 public void UpdateKunde(Common.DataTransferObjects.KundeDto modifed, Common.DataTransferObjects.KundeDto original)
 {
     WriteActualMethod();
     Kunde modifiedKunde = modifed.ConvertToEntity();
     Kunde originalKunde = original.ConvertToEntity();
     try
     {
         provider.UpdateKunde(modifiedKunde, originalKunde);
     }
     catch (LocalOptimisticConcurrencyException<Kunde> e)
     {
         Kunde kunde = e.Entity;
         KundeDto kundeDto = kunde.ConvertToDto();
         throw new FaultException<KundeDto>(kundeDto);
     }
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:16,代码来源:AutoReservationService.cs

示例5: UpdateReservation

 public void UpdateReservation(Common.DataTransferObjects.ReservationDto modified, Common.DataTransferObjects.ReservationDto original)
 {
     WriteActualMethod();
     Reservation modifiedReservation = modified.ConvertToEntity();
     Reservation originalReservation = original.ConvertToEntity();
     try
     {
         provider.UpdateReservation(modifiedReservation, originalReservation);
     }
     catch (LocalOptimisticConcurrencyException<Reservation> e)
     {
         Reservation reservation = e.Entity;
         ReservationDto reservationDto = reservation.ConvertToDto();
         throw new FaultException<ReservationDto>(reservationDto);
     }
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:16,代码来源:AutoReservationService.cs

示例6: UpdateKunde

 public void UpdateKunde(Common.DataTransferObjects.KundeDto modified, Common.DataTransferObjects.KundeDto original)
 {
     WriteActualMethod();
     arbc.UpdateKunde(modified.ConvertToEntity(), original.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs

示例7: UpdateAuto

 public void UpdateAuto(Common.DataTransferObjects.AutoDto modified, Common.DataTransferObjects.AutoDto original)
 {
     WriteActualMethod();
     Auto modifiedAuto = modified.ConvertToEntity();
     Auto originalAuto = original.ConvertToEntity();
     try
     {
         provider.UpdateAuto(modifiedAuto, originalAuto);
     }
     catch (LocalOptimisticConcurrencyException<Auto> e)
     {
         Auto auto = e.Entity;
         AutoDto autoDto = auto.ConvertToDto();
         throw new FaultException<AutoDto>(autoDto);
     }
 }
开发者ID:Hofmaier,项目名称:MsTe-Autoreservation,代码行数:16,代码来源:AutoReservationService.cs

示例8: DeleteReservation

 public void DeleteReservation(Common.DataTransferObjects.ReservationDto deleted)
 {
     WriteActualMethod();
     arbc.DeleteReservation(deleted.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs

示例9: DeleteKunde

 public void DeleteKunde(Common.DataTransferObjects.KundeDto deleted)
 {
     WriteActualMethod();
     arbc.DeleteKunde(deleted.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs

示例10: CreateReservation

 public void CreateReservation(Common.DataTransferObjects.ReservationDto created)
 {
     WriteActualMethod();
     arbc.CreateReservation(created.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs

示例11: CreateKunde

 public void CreateKunde(Common.DataTransferObjects.KundeDto created)
 {
     WriteActualMethod();
     arbc.CreateKunde(created.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs

示例12: UpdateReservation

 public void UpdateReservation(Common.DataTransferObjects.ReservationDto modified, Common.DataTransferObjects.ReservationDto original)
 {
     WriteActualMethod();
     arbc.UpdateReservation(modified.ConvertToEntity(), original.ConvertToEntity());
 }
开发者ID:MLoydd,项目名称:MSTech_Miniprojekt,代码行数:5,代码来源:AutoReservationService.cs


注:本文中的Common.ConvertToEntity方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。