public ServiceBase()
        {
            //Testing
            var optionsBuilder = new DbContextOptionsBuilder <StvContext>();

            optionsBuilder.UseSqlServer(@"Data Source=.\SQL2014;Database=stvsystemDB;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=True", null);
            db = new StvContext(optionsBuilder.Options);
        }
Exemple #2
0
 public SpecializationService(StvContext db)
     : base(db)
 {
 }
 public CourtTypeService(StvContext db)
     : base(db)
 {
 }
Exemple #4
0
 public CandidateService(StvContext db)
     : base(db)
 {
 }
Exemple #5
0
 public SettingService(StvContext db)
     : base(db)
 {
 }
 public CredentialService(StvContext db)
     : base(db)
 {
 }
Exemple #7
0
 public GenderService(StvContext db)
     : base(db)
 {
 }
 public ServiceBase(StvContext context)
 {
     db = context;
 }
 public SelectionService(StvContext db)
     : base(db)
 {
 }
Exemple #10
0
 public JudgeService(StvContext db)
     : base(db)
 {
 }