public IEntityMappingProfile <T> ForArrayMember <TItem>(Expression <Func <T, TItem[]> > selector, Action <IEntityMappingProfile <TItem> > config) where TItem : class, new() { var entityMappingProfile = new EntityMappingProfile <TItem>(); config(entityMappingProfile); return(this.ForArrayMember(selector, entityMappingProfile)); }
public IEntityMappingProfile <T> ForGenericCollectionMember <TEnumerable, TItem>( Expression <Func <T, IEnumerable <TItem> > > selector, Action <IEntityMappingProfile <TItem> > config) where TEnumerable : class, IEnumerable <TItem>, new() where TItem : class, new() { var entityMappingProfile = new EntityMappingProfile <TItem>(); config(entityMappingProfile); return(this.ForGenericCollectionMember <TEnumerable, TItem>(selector, entityMappingProfile)); }