コード例 #1
0
 public ScaleResult(EvaluationMapEntity evaluationMapEntity, int points)
 {
     ScaleId   = evaluationMapEntity.ScaleId;
     ScaleName = evaluationMapEntity.Scale.Name;
     Points    = points;
     Result    = evaluationMapEntity.Result;
 }
コード例 #2
0
        public EvaluationMapEntity ToEntity(ProfessionalQualitiesDbContext dbContext,
                                            TestEntity testEntity, ScaleEntity scaleEntity)
        {
            var entity = new EvaluationMapEntity
            {
                Test            = testEntity,
                Scale           = scaleEntity,
                LowerRangeValue = LowerRangeValue,
                UpperRangeValue = UpperRangeValue,
                Result          = Result
            };

            dbContext.EvaluationMaps.Add(entity);

            return(entity);
        }
コード例 #3
0
 public AppraisedRange(EvaluationMapEntity evaluationMapEntity)
 {
     LowerRangeValue = evaluationMapEntity.LowerRangeValue;
     UpperRangeValue = evaluationMapEntity.UpperRangeValue;
     Result          = evaluationMapEntity.Result;
 }