Configure EnvelopeReport as a keyless entity
Added Entity Framework model configuration for EnvelopeReport in EGDbContextBase, specifying it as a keyless entity using HasNoKey(). This allows EnvelopeReport to be used without a primary key in the database context.
This commit is contained in:
@@ -202,6 +202,10 @@ public abstract class EGDbContextBase : DbContext
|
||||
.HasForeignKey(annot => annot.ElementId);
|
||||
#endregion
|
||||
|
||||
#region EnvelopeReport
|
||||
modelBuilder.Entity<EnvelopeReport>().HasNoKey();
|
||||
#endregion
|
||||
|
||||
#region Trigger
|
||||
// Configure entities to handle database triggers
|
||||
void AddTrigger<T>() where T : class => _triggers
|
||||
|
||||
Reference in New Issue
Block a user