Exemplo n.º 1
0
        /// <inheritdoc/>
        public DimensionStructure Create <T>(T instance)
            where T : IDimensionStructureDomainObject
        {
            Check.IsNotNull(instance);

            DimensionStructure dimensionStructure = new DimensionStructure
            {
                Name     = _stringHelper.GetNamePropertyString(instance.Name),
                Desc     = _stringHelper.GetDescPropertyString(instance.Desc),
                IsActive = Convert.ToInt32(instance.IsActive),
            };

            return(dimensionStructure);
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public SourceFormat Create <T>(T instance)
            where T : ISourceFormatDomainObject
        {
            Check.IsNotNull(instance);

            SourceFormat sourceFormat = new SourceFormat
            {
                Name     = _stringHelper.GetNamePropertyString(instance.Name),
                Desc     = _stringHelper.GetDescPropertyString(instance.Desc),
                IsActive = Convert.ToInt32(instance.IsActive),
            };

            return(sourceFormat);
        }