Esempio n. 1
0
        protected IEnumerable <T> Resolve(IEnumerable <T_vw> viewModel)
        {
            if (viewModel == null)
            {
                throw new InvalidObjectException();
            }

            return(MappingWraper.Map <IEnumerable <T_vw>, IEnumerable <T> >(viewModel));
        }
Esempio n. 2
0
        protected IEnumerable <T_vw> Resolve(IEnumerable <T> entity)
        {
            if (entity == null)
            {
                throw new InvalidObjectException();
            }

            return(MappingWraper.Map <IEnumerable <T>, IEnumerable <T_vw> >(entity));
        }
Esempio n. 3
0
        protected T Resolve(T_vw viewModel)
        {
            if (viewModel == null)
            {
                throw new InvalidObjectException();
            }

            return(MappingWraper.Map <T_vw, T>(viewModel));
        }
Esempio n. 4
0
        protected TTo Resolve <TFrom, TTo>(TFrom entity) where TFrom : EntityBase_vw <long> where TTo : EntityBase <long>
        {
            if (entity == null)
            {
                throw new InvalidObjectException();
            }

            return(MappingWraper.Map <TFrom, TTo>(entity));
        }
Esempio n. 5
0
        protected T_vw Resolve(T entity)
        {
            if (entity == null)
            {
                throw new InvalidObjectException();
            }

            return(MappingWraper.Map <T, T_vw>(entity));
        }