/// <summary>Updates the specified EntityModel.EntityClasses.ActorIncidentEntity entity with the values stored in the dto object specified</summary> /// <param name="toUpdate">the entity instance to update.</param> /// <param name="dto">The dto object containing the source values.</param> /// <remarks>The PK field of toUpdate is set only if it's not marked as readonly.</remarks> public static void UpdateFromCoreActorIncidentDto(this EntityModel.EntityClasses.ActorIncidentEntity toUpdate, Dto.DtoClasses.CoreActorIncidentDto dto) { if ((toUpdate == null) || (dto == null)) { return; } toUpdate.ActorId = dto.ActorId; toUpdate.Id = dto.Id; toUpdate.IncidentId = dto.IncidentId; }
/// <summary>Extension method which produces a projection to Dto.DtoClasses.CoreActorIncidentDto which instances are projected from the /// EntityModel.EntityClasses.ActorIncidentEntity entity instance specified, the root entity of the derived element returned by this method.</summary> /// <param name="entity">The entity to project from.</param> /// <returns>EntityModel.EntityClasses.ActorIncidentEntity instance created from the specified entity instance</returns> public static Dto.DtoClasses.CoreActorIncidentDto ProjectToCoreActorIncidentDto(this EntityModel.EntityClasses.ActorIncidentEntity entity) { return(_compiledProjector(entity)); }