예제 #1
0
 public static CadastroUsuarioContext GetSingleton()
 {
     if (ActiveContext == null)
     {
         ActiveContext = new CadastroUsuarioContext();
     }
     return(ActiveContext);
 }
예제 #2
0
 private CadastroUsuarioContext()
 {
     ActiveContext = this;
 }
예제 #3
0
 private CadastroUsuarioContext(DbContextOptions <CadastroUsuarioContext> options)
     : base(options)
 {
     ActiveContext = this;
 }
예제 #4
0
 public RepositoryBase()
 {
     context = CadastroUsuarioContext.GetSingleton();
 }