本文整理汇总了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);
}
示例2: InsertAuto
public void InsertAuto(Common.DataTransferObjects.AutoDto autoDto)
{
WriteActualMethod();
Auto auto = autoDto.ConvertToEntity();
provider.InsertAuto(auto);
}
示例3: InsertKunde
public void InsertKunde(Common.DataTransferObjects.KundeDto kundeDto)
{
WriteActualMethod();
Kunde kunde = kundeDto.ConvertToEntity();
provider.InsertKunde(kunde);
}
示例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);
}
}
示例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);
}
}
示例6: UpdateKunde
public void UpdateKunde(Common.DataTransferObjects.KundeDto modified, Common.DataTransferObjects.KundeDto original)
{
WriteActualMethod();
arbc.UpdateKunde(modified.ConvertToEntity(), original.ConvertToEntity());
}
示例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);
}
}
示例8: DeleteReservation
public void DeleteReservation(Common.DataTransferObjects.ReservationDto deleted)
{
WriteActualMethod();
arbc.DeleteReservation(deleted.ConvertToEntity());
}
示例9: DeleteKunde
public void DeleteKunde(Common.DataTransferObjects.KundeDto deleted)
{
WriteActualMethod();
arbc.DeleteKunde(deleted.ConvertToEntity());
}
示例10: CreateReservation
public void CreateReservation(Common.DataTransferObjects.ReservationDto created)
{
WriteActualMethod();
arbc.CreateReservation(created.ConvertToEntity());
}
示例11: CreateKunde
public void CreateKunde(Common.DataTransferObjects.KundeDto created)
{
WriteActualMethod();
arbc.CreateKunde(created.ConvertToEntity());
}
示例12: UpdateReservation
public void UpdateReservation(Common.DataTransferObjects.ReservationDto modified, Common.DataTransferObjects.ReservationDto original)
{
WriteActualMethod();
arbc.UpdateReservation(modified.ConvertToEntity(), original.ConvertToEntity());
}