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