Changeset 13f1472 for resTools_backend/backend/Data/DataContext.cs
- Timestamp:
- 09/18/22 18:09:53 (2 years ago)
- Branches:
- master
- Parents:
- 49b0bbd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Data/DataContext.cs
r49b0bbd r13f1472 94 94 } 95 95 96 private DbSet<QueueItem> queueItems; 97 public DbSet<QueueItem> QueueItems 98 { 99 get 100 { 101 if (queueItems == null) 102 { 103 queueItems = Set<QueueItem>(); 104 } 105 106 return queueItems; 107 } 108 } 109 96 110 97 111 protected override void OnModelCreating(ModelBuilder modelBuilder) … … 152 166 modelBuilder.Entity<ToDoItem>() 153 167 .HasOne(p => p.LinkedReview); 168 169 modelBuilder.Entity<QueueItem>().Property(x => x.Id).IsRequired().ValueGeneratedOnAdd(); 154 170 } 155 171 }
Note:
See TracChangeset
for help on using the changeset viewer.