From 10be070fae0bf0a96cf9da498e7f559731a010ff Mon Sep 17 00:00:00 2001 From: jojo aquino Date: Mon, 24 Mar 2025 09:10:40 +0000 Subject: [PATCH] re arrange Transaction.cs --- .../EnotaryoPH.Data/Entities/Transaction.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/EnotaryoPH/EnotaryoPH.Data/Entities/Transaction.cs b/EnotaryoPH/EnotaryoPH.Data/Entities/Transaction.cs index 141de7c..7aee57c 100644 --- a/EnotaryoPH/EnotaryoPH.Data/Entities/Transaction.cs +++ b/EnotaryoPH/EnotaryoPH.Data/Entities/Transaction.cs @@ -11,12 +11,21 @@ namespace EnotaryoPH.Data.Entities [Column("IsRecorded")] public bool? IsRecorded { get; set; } + [ForeignKey("LawyerID")] + public Lawyer Lawyer { get; set; } + [Column("LawyerID")] public int? LawyerID { get; set; } + [ForeignKey("PreferredLawyerID")] + public Lawyer PreferredLawyer { get; set; } + [Column("PreferredLawyerID")] public int? PreferredLawyerID { get; set; } + [ForeignKey("PrincipalID")] + public User Principal { get; set; } + [Column("PrincipalID")] public int PrincipalID { get; set; } @@ -37,14 +46,5 @@ namespace EnotaryoPH.Data.Entities public TransactionSelfie TransactionSelfie { get; set; } public List TransactionSignatories { get; set; } - - [ForeignKey("PrincipalID")] - public User Principal { get; set; } - - [ForeignKey("LawyerID")] - public Lawyer Lawyer { get; set; } - - [ForeignKey("PreferredLawyerID")] - public Lawyer PreferredLawyer { get; set; } } } \ No newline at end of file