| 12345678910111213141516171819202122232425262728293031323334 |
- using Microsoft.EntityFrameworkCore;
- using Quadarax.Application.QLiberace.Base.Entities;
- namespace Quadarax.Application.QLiberace.Base
- {
- public class QlbrcDbContext : DbContext
- {
- #region *** Mapped entities ***
- public DbSet<User> Users { get; set; }
- public DbSet<Tenant> Tenants { get; set; }
- public DbSet<Setting> Settings { get; set; }
- #endregion
-
- #region *** Constructors ***
- public QlbrcDbContext() : base()
- {
- }
- public QlbrcDbContext(DbContextOptions options) : base(options)
- {
- }
- #endregion
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- optionsBuilder.UseSqlServer(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=QLiberace;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False");
- }
- }
- }
|