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; }
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); }