public UploadedFileNational(long nationalCommunityId, SRP3Entities dbContext, string filePath) { NationalCommunityId = nationalCommunityId; DbContext = dbContext; Result = FileHelpers.ReadFile(filePath); FileHelpers.FileErrorCheck(Result, Columns); }
public UploadedFileCluster(long clusterId, SRP3Entities dbContext, string filePath) { ClusterId = clusterId; DbContext = dbContext; Result = FileHelpers.ReadFile(filePath); FileHelpers.FileErrorCheck(Result, Columns); }
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(); } }