Skip to content

Commit

Permalink
add Virtual In Prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstaheri committed Oct 1, 2024
1 parent 08de661 commit 0281c62
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions Domain/Entity/BankAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class BankAccount : IEntity
public class BankAccount : IEntity
{
public BankAccount(AccountNumber accountNumber, UserName userName, Name accountName,
Name bankName, string description)
Expand All @@ -26,9 +26,9 @@ public BankAccount(AccountNumber accountNumber, UserName userName, Name accountN
public Name AccountName { get; private set; }
public Name BankName { get; private set; }
public string Description { get; private set; }
public User User { get; private set; }
public ICollection<BankSafeTransaction> BankSafeTransactions { get; private set; }
public ICollection<BankSafeDocument> BankSafeDocuments { get; private set; }
public virtual User User { get; private set; }
public virtual ICollection<BankSafeTransaction> BankSafeTransactions { get; private set; }
public virtual ICollection<BankSafeDocument> BankSafeDocuments { get; private set; }

public void Update(Name accountName,
Name bankName, string description)
Expand Down
14 changes: 7 additions & 7 deletions Domain/Entity/BankSafe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class BankSafe : IEntity
public class BankSafe : IEntity
{
public BankSafe(Name name, Money sharePrice)
{
Expand All @@ -19,12 +19,12 @@ public BankSafe(Name name, Money sharePrice)
}
public Name Name { get; private set; }
public Money SharePrice { get; private set; }
public ICollection<UserAndNumberOfShare> UserAndNumberOfShares { get; private set; }
public ICollection<BankSafeTransaction> BankSafeTransactions { get; private set; }
public ICollection<BankSafeDocument> BankSafeDocuments { get; private set; }
public ICollection<Loan> loans { get; private set; }
public ICollection<LoanTransactions> LoanTransactions { get; private set; }
public ICollection<LoanDocument> LoanDocuments { get; private set; }
public virtual ICollection<UserAndNumberOfShare> UserAndNumberOfShares { get; private set; }
public virtual ICollection<BankSafeTransaction> BankSafeTransactions { get; private set; }
public virtual ICollection<BankSafeDocument> BankSafeDocuments { get; private set; }
public virtual ICollection<Loan> loans { get; private set; }
public virtual ICollection<LoanTransactions> LoanTransactions { get; private set; }
public virtual ICollection<LoanDocument> LoanDocuments { get; private set; }

public void Update(Money sharePrice)
{
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/BankSafeDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class BankSafeDocument : IEntity
public class BankSafeDocument : IEntity
{
public BankSafeDocument(Name nameBankSafe, AccountNumber accountNumber, PersianDate registrationDate,
PersianDate dueDate, Money deposit, Money withdrawal, SituationTypes situation)
Expand Down Expand Up @@ -40,8 +40,8 @@ public BankSafeDocument(Name nameBankSafe, AccountNumber accountNumber, PersianD
public Money Deposit { get; private set; }
public Money Withdrawal { get; private set; }
public SituationTypes Situation { get; private set; }
public BankAccount BankAccount { get; private set; }
public BankSafe BankSafe { get; private set; }
public virtual BankAccount BankAccount { get; private set; }
public virtual BankSafe BankSafe { get; private set; }

public void Update(PersianDate registrationDate, PersianDate dueDate,
Money deposit, Money withdrawal)
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/BankSafeTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class BankSafeTransaction : IEntity
public class BankSafeTransaction : IEntity
{
public BankSafeTransaction(Name nameBankSafe, AccountNumber accountNumber,
Money deposit, Money withdrawal)
Expand All @@ -35,8 +35,8 @@ public BankSafeTransaction(Name nameBankSafe, AccountNumber accountNumber,
public AccountNumber AccountNumber { get; private set; }
public Money Deposit { get; private set; }
public Money Withdrawal { get; private set; }
public BankAccount BankAccount { get; private set; }
public BankSafe BankSafe { get; private set; }
public virtual BankAccount BankAccount { get; private set; }
public virtual BankSafe BankSafe { get; private set; }

public void Update(Money deposit, Money withdrawal)
{
Expand Down
8 changes: 4 additions & 4 deletions Domain/Entity/Loan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class Loan : IEntity
public class Loan : IEntity
{
public Loan(Name nameBankSafe, Name firstName, Name lastName, Number numberOfInstallments, Money amount , Percent wage)
{
Expand All @@ -29,9 +29,9 @@ public Loan(Name nameBankSafe, Name firstName, Name lastName, Number numberOfIns
public Number NumberOfInstallments { get; private set; }
public Money Amount { get; private set; }
public Percent Wage { get; private set; }
public BankSafe BankSafe { get; private set; }
public ICollection<LoanTransactions> LoanTransactions { get; private set; }
public ICollection<LoanDocument> LoanDocuments { get; private set; }
public virtual BankSafe BankSafe { get; private set; }
public virtual ICollection<LoanTransactions> LoanTransactions { get; private set; }
public virtual ICollection<LoanDocument> LoanDocuments { get; private set; }

public void Update(Name firstName , Name lastName ,
Number numberOfInstallments, Money amount)
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/LoanDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class LoanDocument : IEntity
public class LoanDocument : IEntity
{
public LoanDocument(Guid codeLoan, Name nameBankSafe, string registrationDate,
string dueDate, decimal amount, SituationTypes situation)
Expand All @@ -31,8 +31,8 @@ public LoanDocument(Guid codeLoan, Name nameBankSafe, string registrationDate,
public string DueDate { get; private set; }
public decimal Amount { get; private set; }
public SituationTypes Situation { get; private set; }
public Loan Loan { get; private set; }
public BankSafe BankSafe { get; private set; }
public virtual Loan Loan { get; private set; }
public virtual BankSafe BankSafe { get; private set; }

public void Update(string registrationDate,string dueDate,
decimal amount, SituationTypes situation)
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/LoanTransactions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class LoanTransactions : IEntity
public class LoanTransactions : IEntity
{
public LoanTransactions(Guid codeLoan, Name nameBankSafe, int numberOfInstallments
, decimal amount)
Expand All @@ -26,8 +26,8 @@ public LoanTransactions(Guid codeLoan, Name nameBankSafe, int numberOfInstallmen
public Name NameBankSafe { get; private set; }
public int NumberOfInstallments { get; private set; }
public decimal Amount { get; private set; }
public Loan Loan { get; private set; }
public BankSafe BankSafe { get; private set; }
public virtual Loan Loan { get; private set; }
public virtual BankSafe BankSafe { get; private set; }

public void Update(int numberOfInstallments, decimal amount)
{
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class User : IEntity
public class User : IEntity
{
public User(Name firstName, Name lastName, PhoneNumber phoneNumber,
NationalIDNumber nationalIDNumber, UserName userName,
Expand All @@ -29,8 +29,8 @@ public User(Name firstName, Name lastName, PhoneNumber phoneNumber,
public NationalIDNumber NationalIDNumber { get; private set; }
public UserName UserName { get; private set; }
public Password Password { get; private set; }
public ICollection<BankAccount> BankAccounts { get; private set; }
public ICollection<UserAndNumberOfShare> UserAndNumberOfShares { get; private set; }
public virtual ICollection<BankAccount> BankAccounts { get; private set; }
public virtual ICollection<UserAndNumberOfShare> UserAndNumberOfShares { get; private set; }

public void Update(Name firstName, Name lastName, PhoneNumber phoneNumber,
NationalIDNumber nationalIDNumber,
Expand Down
6 changes: 3 additions & 3 deletions Domain/Entity/UserAndNumberOfShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Domain.Entity
{
[AudiTable]
public sealed class UserAndNumberOfShare : IEntity
public class UserAndNumberOfShare : IEntity
{
public UserAndNumberOfShare(Name nameBankSafe, UserName userName, Number numberOfShares)
{
Expand All @@ -21,8 +21,8 @@ public UserAndNumberOfShare(Name nameBankSafe, UserName userName, Number numberO
public Name NameBankSafe { get; private set; }
public UserName UserName { get; private set; }
public Number NumberOfShares { get; private set; }
public BankSafe BankSafe { get; private set; }
public User User { get; private set; }
public virtual BankSafe BankSafe { get; private set; }
public virtual User User { get; private set; }

public void Update(Number numberOfShares)
{
Expand Down

0 comments on commit 0281c62

Please sign in to comment.