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())); }
protected ActionBase(OboeteContext context) { DbContext = context; }
protected ActionBase() { DbContext = new OboeteContext(Config.ConnectionString); }
public JwtAutenticationHandler(IOptionsMonitor <JwtAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, OboeteContext context) : base(options, logger, encoder, clock) { DbContext = context; }
public UserController(OboeteContext context) : base(context) { }
public OboeteUserAction(OboeteContext context) : base(context) { }
public DeckAction(OboeteContext context) : base(context) { }
public FlashcardAction(OboeteContext context) : base(context) { }
public ControllerBase(OboeteContext dataToken) => DbContext = dataToken;
public NoteAction(OboeteContext context) : base(context) { }
public FlashcardController(OboeteContext context) : base(context) { }