private void InitImportEntities(ImportParameters parameters)
        {
            var keyColumns = GetKeyColumns(parameters);

            PrimaryEntityFinder.LoadPrimaryEntity(parameters, keyColumns);
            var childEntities = ChildImportEntitiesGetter.Get(parameters);

            ChildImportEntitiesSetter.Set(parameters, childEntities);
        }
示例#2
0
 /// <summary>
 /// Create instance of <see cref="FileImporter"/>
 /// </summary>
 /// <param name="userConnection"></param>
 /// <param name="cacheStore"></param>
 /// <param name="columnsProcessor"></param>
 /// <param name="peGetter"></param>
 /// <param name="ceGetter"></param>
 /// <param name="peSetter"></param>
 /// <param name="_ceSetter"></param>
 public FileImporter(UserConnection userConnection, ICacheStore cacheStore,
                     IColumnsAggregatorAdapter columnsProcessor, PrimaryImportEntitiesGetter peGetter,
                     ChildImportEntitiesGetter ceGetter, PrimaryImportEntitiesSetter peSetter,
                     ChildImportEntitiesSetter _ceSetter)
     : base(userConnection, cacheStore, columnsProcessor)
 {
     _primaryImportEntitiesGetter = peGetter;
     _primaryImportEntitiesSetter = peSetter;
     _childImportEntitiesGetter   = ceGetter;
     _childImportEntitiesSetter   = _ceSetter;
 }