[CHANGE] ApplicationContext removed and related classes. Added Drive info to library info page.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Manager.Data.Contexts;
|
||||
|
||||
public sealed class ApplicationContext : DbContext
|
||||
{
|
||||
public ApplicationContext(DbContextOptions<ApplicationContext> options) : base(options)
|
||||
{
|
||||
ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
|
||||
ChangeTracker.LazyLoadingEnabled = false;
|
||||
Database.EnsureCreated();
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.AddInterceptors(new DateInterceptor());
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Manager.Data.Entities.ApplicationContext;
|
||||
|
||||
public class WorkItemEntity : DateTimeBase
|
||||
{
|
||||
public required Guid Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public required string Description { get; set; }
|
||||
public WorkStatus Status { get; set; } = WorkStatus.Pending;
|
||||
public required string ClientId { get; set; }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Manager.Data.Entities.ApplicationContext;
|
||||
|
||||
public enum WorkStatus
|
||||
{
|
||||
Pending = 0,
|
||||
InProgress = 1,
|
||||
Paused = 2,
|
||||
Completed = 3,
|
||||
Faulted = 4,
|
||||
}
|
||||
Reference in New Issue
Block a user