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