rename Entities.Signature as DocReceiverElement
This commit is contained in:
@@ -45,7 +45,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
|
||||
public DbSet<Envelope> Envelopes { get; set; }
|
||||
|
||||
public DbSet<Signature> DocumentReceiverElements { get; set; }
|
||||
public DbSet<DocReceiverElement> DocumentReceiverElements { get; set; }
|
||||
|
||||
public DbSet<ElementAnnotation> DocumentReceiverElementAnnotations { get; set; }
|
||||
|
||||
@@ -154,7 +154,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
#endregion EnvelopeDocument
|
||||
|
||||
#region DocumentReceiverElement
|
||||
modelBuilder.Entity<Signature>()
|
||||
modelBuilder.Entity<DocReceiverElement>()
|
||||
.HasOne(dre => dre.Document)
|
||||
.WithMany(ed => ed.Elements)
|
||||
.HasForeignKey(dre => dre.DocumentId);
|
||||
@@ -196,7 +196,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
#endregion DocumentStatus
|
||||
|
||||
#region Annotation
|
||||
modelBuilder.Entity<Signature>()
|
||||
modelBuilder.Entity<DocReceiverElement>()
|
||||
.HasMany(signature => signature.Annotations)
|
||||
.WithOne(annot => annot.Element)
|
||||
.HasForeignKey(annot => annot.ElementId);
|
||||
@@ -217,7 +217,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
|
||||
// TODO: call add trigger methods with attributes and reflection
|
||||
AddTrigger<Config>();
|
||||
AddTrigger<Signature>();
|
||||
AddTrigger<DocReceiverElement>();
|
||||
AddTrigger<DocumentStatus>();
|
||||
AddTrigger<EmailTemplate>();
|
||||
AddTrigger<Envelope>();
|
||||
|
||||
Reference in New Issue
Block a user