using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using System; using TodoAPI2.Models; using TTSW.EF; namespace TTSW.EF { public class DataContext : DbContext { public DataContext (DbContextOptions options) : base (options) { } public DbSet eva_create_evaluation { get; set; } public DbSet eva_create_evaluation_detail { get; set; } //public DbSet eva_create_evaluation_detail_agreement { get; set; } public DbSet eva_evaluation_achievement { get; set; } public DbSet eva_evaluation_behavior { get; set; } public DbSet eva_evaluation_group { get; set; } public DbSet eva_evaluation_group_detail { get; set; } public DbSet eva_level_score { get; set; } //public DbSet rep_eva01 { get; set; } //public DbSet rep_eva02 { get; set; } //public DbSet rep_eva03 { get; set; } //public DbSet rep_family { get; set; } //public DbSet rep_leave_summary { get; set; } //public DbSet rep_leave_total { get; set; } //public DbSet rep_position_salary { get; set; } //public DbSet rep_samana { get; set; } //public DbSet rep_study_history { get; set; } //public DbSet rep_working_type { get; set; } public DbSet eva_performance_plan { get; set; } public DbSet eva_performance_plan_detail { get; set; } public DbSet eva_promoted_percentage { get; set; } public DbSet eva_salary_cylinder { get; set; } public DbSet eva_adjust_postponement { get; set; } //public DbSet eva_adjust_postponement_normal { get; set; } public DbSet eva_adjust_postponement_detail { get; set; } //public DbSet eva_adjust_postponement_detail_normal { get; set; } public DbSet eva_evaluation_operating_agreement { get; set; } public DbSet eva_limit_frame_employee { get; set; } public DbSet eva_limit_frame_group { get; set; } public DbSet eva_limit_frame_plan { get; set; } public DbSet eva_idp_plan { get; set; } public DbSet eva_create_evaluation_detail_history { get; set; } public DbSet eva_evaluation_achievement_attach { get; set; } protected override void OnModelCreating (ModelBuilder modelBuilder) { base.OnModelCreating (modelBuilder); } } //public class DataContextFactory : IDesignTimeDbContextFactory { // public DataContext CreateDbContext (string[] args) { // var optionsBuilder = new DbContextOptionsBuilder (); // optionsBuilder.UseNpgsql ("Server=115.31.162.93;Database=poc;User ID=poc;Password=project0*;"); // return new DataContext (optionsBuilder.Options); // } //} }