/// <summary>Updates the specified EntityModel.EntityClasses.IncidentEntity 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 UpdateFromCoreIncidentDto(this EntityModel.EntityClasses.IncidentEntity toUpdate, Dto.DtoClasses.CoreIncidentDto dto)
 {
     if ((toUpdate == null) || (dto == null))
     {
         return;
     }
     toUpdate.CollectionId = dto.CollectionId;
     toUpdate.Grouping     = dto.Grouping;
     toUpdate.Id           = dto.Id;
     toUpdate.ItemId       = dto.ItemId;
 }
 /// <summary>Extension method which produces a projection to Dto.DtoClasses.CoreIncidentDto which instances are projected from the
 /// EntityModel.EntityClasses.IncidentEntity 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.IncidentEntity instance created from the specified entity instance</returns>
 public static Dto.DtoClasses.CoreIncidentDto ProjectToCoreIncidentDto(this EntityModel.EntityClasses.IncidentEntity entity)
 {
     return(_compiledProjector(entity));
 }