コード例 #1
0
        public LabelTranslationDao EntityToDao(LabelTranslation entity)
        {
            LabelTranslationDao dao = new LabelTranslationDao
            {
                Id               = entity.Id,
                RefLabelId       = converter.EntityToDao(entity.RefLabelId),
                Language         = entity.Language,
                TranslationValue = entity.TranslationValue
            };

            return(dao);
        }
コード例 #2
0
        public LabelTranslation DaoToEntity(LabelTranslationDao dao)
        {
            LabelTranslation entity = new LabelTranslation
            {
                Id               = dao.Id,
                RefLabelId       = converter.DaoToEntity(dao.RefLabelId),
                Language         = dao.Language,
                TranslationValue = dao.TranslationValue
            };

            return(entity);
        }