Example #1
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <ProcessInstance> builder)
 {
     builder.HasOne(a => a.N_Job)
     .WithMany()
     .HasForeignKey(a => new
     {
         a.ClientID,
         a.JobID
     });
 }
Example #2
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <TableRange> builder)
 {
     builder.HasOne <Table>()
     .WithMany(a => a.N_Ranges)
     .HasForeignKey(a => new
     {
         a.TableID,
         a.Code
     });
 }
Example #3
0
        protected override void ConfigureRelationship(BaseRelationshipBuilder <MasterEmployee> builder)
        {
            builder.HasOne(a => a.N_Employee)
            .WithMany()
            .HasForeignKey(a => new
            {
                a.EmployeeID,
                a.ClientID
            });

            builder.HasOne(a => a.N_PayRun)
            .WithMany()
            .HasForeignKey(a => new
            {
                a.ClientID,
                a.PayRunID,
                a.PlanYear
            })
            .OnDelete(DeleteBehavior.NoAction);
        }
Example #4
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <BillSetting> builder)
 {
     builder.HasOne <Bill>()
     .WithMany(a => a.N_BillSettings)
     .HasForeignKey(a => a.BillID);
 }
Example #5
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <EmailWorker> builder)
 {
     builder.HasOne <BillProvider>()
     .WithOne(a => a.N_EmailWorker)
     .HasForeignKey <EmailWorker>(a => a.ID);
 }
Example #6
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <BillPaymentStepsTemplate> builder)
 {
     builder.HasOne <Bill>()
     .WithMany(a => a.N_PaymentStepsTemplates)
     .HasForeignKey(a => a.BillID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <EmailBody> builder)
 {
     builder.HasOne(a => a.N_Email)
     .WithOne(a => a.N_Body)
     .HasForeignKey <EmailBody>(a => a.ID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <SchedulerEntry> builder)
 {
     builder.HasOne <ProviderTypeConfigScheduler>()
     .WithMany(a => a.N_ScheduleEntries)
     .HasForeignKey(a => a.TrackBillSchedulerID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <ProcessInstanceParameter> builder)
 {
     builder.HasOne <ProcessInstance>()
     .WithMany(a => a.N_InstanceParameters)
     .HasForeignKey(a => a.ProcessInstanceID);
 }
Example #10
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <StagingPerson> builder)
 {
     builder.HasOne(a => a.N_JobInstance)
     .WithMany()
     .HasForeignKey(a => a.ProcessInstanceID);
 }
Example #11
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <UserSession> builder)
 {
     builder.HasOne(a => a.User)
     .WithMany()
     .HasForeignKey(a => a.UserID);
 }
Example #12
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <Period> builder)
 {
     builder.HasOne(a => a.N_PaymentMode)
     .WithMany()
     .HasForeignKey(a => a.PaymentModeID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <BlogPost> builder)
 {
     builder.HasOne(a => a.Author)
     .WithMany(a => a.BlogPosts);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <FirebaseToken> builder)
 {
     builder.HasOne <User>()
     .WithMany()
     .HasForeignKey(a => a.UserID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <UserLogin> builder)
 {
     builder.HasOne(a => a.User)
     .WithOne(a => a.UserLogin)
     .HasForeignKey <UserLogin>(a => a.ID);
 }
 protected override void ConfigureRelationship(BaseRelationshipBuilder <EmailPart> builder)
 {
     builder.HasOne <Email>()
     .WithMany(a => a.N_Headers)
     .HasForeignKey(a => a.EmailID);
 }
Example #17
0
 protected override void ConfigureRelationship(BaseRelationshipBuilder <Job> builder)
 {
     builder.HasOne(a => a.N_TaskHandlerProvider)
     .WithMany()
     .HasForeignKey(a => a.TaskHandlerProviderID);
 }