예제 #1
0
 public UploadedFileNational(long nationalCommunityId, SRP3Entities dbContext, string filePath)
 {
     NationalCommunityId = nationalCommunityId;
     DbContext           = dbContext;
     Result = FileHelpers.ReadFile(filePath);
     FileHelpers.FileErrorCheck(Result, Columns);
 }
예제 #2
0
 public UploadedFileCluster(long clusterId, SRP3Entities dbContext, string filePath)
 {
     ClusterId = clusterId;
     DbContext = dbContext;
     Result    = FileHelpers.ReadFile(filePath);
     FileHelpers.FileErrorCheck(Result, Columns);
 }
예제 #3
0
 public SrpImporter(string connectionString, ILogger logger, SrpImporterRequest request, bool isNational = false)
 {
     _isNational        = isNational;
     _dbContext         = new SRP3Entities(connectionString);
     _logger            = logger;
     _request           = request;
     _nationalCommunity = GetNationalCommunity();
     if (!isNational)
     {
         _region  = GetRegion();
         _cluster = GetCluster();
     }
 }