Exemplo n.º 1
0
        public OboeteContext CreateContext()
        {
            if (Connection == null)
            {
                Connection = new SqliteConnection("DataSource=:memory:");
                Connection.Open();

                var options = CreateOptions();
                using (var context = new OboeteContext(options)) {
                    context.Database.EnsureCreated();
                }
            }

            return(new OboeteContext(CreateOptions()));
        }
Exemplo n.º 2
0
 protected ActionBase(OboeteContext context)
 {
     DbContext = context;
 }
Exemplo n.º 3
0
 protected ActionBase()
 {
     DbContext = new OboeteContext(Config.ConnectionString);
 }
Exemplo n.º 4
0
 public JwtAutenticationHandler(IOptionsMonitor <JwtAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, OboeteContext context) : base(options, logger, encoder, clock)
 {
     DbContext = context;
 }
Exemplo n.º 5
0
 public UserController(OboeteContext context) : base(context)
 {
 }
Exemplo n.º 6
0
 public OboeteUserAction(OboeteContext context) : base(context)
 {
 }
Exemplo n.º 7
0
 public DeckAction(OboeteContext context) : base(context)
 {
 }
Exemplo n.º 8
0
 public FlashcardAction(OboeteContext context) : base(context)
 {
 }
Exemplo n.º 9
0
 public ControllerBase(OboeteContext dataToken) => DbContext = dataToken;
Exemplo n.º 10
0
 public NoteAction(OboeteContext context) : base(context)
 {
 }
Exemplo n.º 11
0
 public FlashcardController(OboeteContext context) : base(context)
 {
 }