Пример #1
0
        public static JobApplicationEntity Map(this InternalApplication application)
        {
            var entity = new JobApplicationEntity {
                id = application.Id
            };

            application.MapTo(entity);
            return(entity);
        }
Пример #2
0
 public static void MapTo(this InternalApplication application, JobApplicationEntity entity)
 {
     entity.id                     = application.Id;
     entity.applicantId            = application.ApplicantId;
     entity.coverLetterText        = application.CoverLetterText;
     entity.createdTime            = application.CreatedTime;
     entity.jobAdId                = application.PositionId;
     entity.resumeId               = application.ResumeId;
     entity.resumeAttachmentFileId = application.ResumeFileId;
     entity.isPending              = application.IsPending;
     entity.isFeatured             = application.IsPositionFeatured;
 }
Пример #3
0
 public static InternalApplication Map(this JobApplicationEntity entity)
 {
     return(new InternalApplication
     {
         Id = entity.id,
         ApplicantId = entity.applicantId,
         CoverLetterText = entity.coverLetterText,
         CreatedTime = entity.createdTime,
         PositionId = entity.jobAdId,
         ResumeId = entity.resumeId,
         ResumeFileId = entity.resumeAttachmentFileId,
         IsPending = entity.isPending,
         IsPositionFeatured = entity.isFeatured,
     });
 }
Пример #4
0
 partial void DeleteJobApplicationEntity(JobApplicationEntity instance);
Пример #5
0
 partial void UpdateJobApplicationEntity(JobApplicationEntity instance);
Пример #6
0
 partial void InsertJobApplicationEntity(JobApplicationEntity instance);