示例#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;
 }
 public RepositoryBase()
 {
     context = CadastroUsuarioContext.GetSingleton();
 }