コード例 #1
0
        public static void Main(string[] args)
        {
            _dbContext = new ManagerReportsContext(new Startup().Configuration);

            Log.Logger = new LoggerConfiguration()
                         .MinimumLevel.Information()
                         .WriteTo.RollingFile(Path.Combine(Directory.GetCurrentDirectory(), "logs", "{Date}.log"))
                         .WriteTo.Console(LogEventLevel.Information)
                         .CreateLogger();

            //DownloadProjects();
            DownloadProejectVersions();
            //DownloadEmployees();
            //DownloadIssueStatuses();
            DownloadIssues();

            DownloadTimeRecords();

            UpdatedTimeRecordResourceNames();
        }
コード例 #2
0
 public ProjectRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration); ;
 }
コード例 #3
0
 public TimeRecordService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #4
0
 public IssueStatusRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);;
 }
コード例 #5
0
 public ProjectReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #6
0
 public EmployeeReportService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #7
0
 public TimeRecordRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }
コード例 #8
0
 public PaymentService(ManagerReportsContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #9
0
 public EmployeeRepository()
 {
     _dbContext = new ManagerReportsContext(new Startup().Configuration);
 }