コード例 #1
0
        public static DataCollection MapFrom(this DataCollection entity, DataCollectionViewModelStep1 vm)
        {
            if (vm == null || entity == null)
                return entity;

            string[] exclusions = entity.IsFirstCollection ? new[] {"DataStoreLocationName", "DataStoreLocationUrl", "IsFirstCollection"} : new string[] {};
            var injection = new SameNameWithRecursion(exclusions);
            entity.InjectFrom(injection, vm);
            return entity;
        }
コード例 #2
0
        public static DataCollection MapFrom(this DataCollection entity, DataCollectionViewModelStep1 vm)
        {
            if (vm == null || entity == null)
            {
                return(entity);
            }

            string[] exclusions = entity.IsFirstCollection ? new[] { "DataStoreLocationName", "DataStoreLocationUrl", "IsFirstCollection" } : new string[] {};
            var      injection  = new SameNameWithRecursion(exclusions);

            entity.InjectFrom(injection, vm);
            return(entity);
        }