Note that there are some explanatory texts on larger screens.

plurals
  1. POCurrency is value object or not
    primarykey
    data
    text
    <p>I have Person aggregate, which is root aggregate</p> <pre><code>public class Person { private int id; private readonly PersonID personID; private readonly string email; private readonly string firstName; private readonly string lastName; private readonly string username; private readonly string password; private readonly Address BillingAddress; } public class Currency : IValueObject&lt;Currency&gt; { private string name; private string currencyCode; private decimal rate; private string displayLocale; private string customFormatting; private int displayOrder; private bool primaryExchangeRateCurrency; private bool primaryStoreCurrency; //&lt;summary&gt; //Gets or a value indicating whether the currency is primary exchange rate currency //&lt;/summary&gt; public bool IsPrimaryExchangeRateCurrency { get { return primaryExchangeRateCurrency; } } /// &lt;summary&gt; /// Gets or a value indicating whether the currency is primary store currency /// &lt;/summary&gt; public bool IsPrimaryStoreCurrency { get { return primaryStoreCurrency; } } } </code></pre> <p>and Currency class, which is to be referenced in Person class. </p> <p>So now if a Person entity is created , we need to associate it a currency too.But among all Currencies created, i want to know which is the default <strong>primary store currency</strong>. I don't want to know it through Person because it contains only single currency. I want to get a currency which is PrimaryStoreCurrency from all created currencies of persons.</p> <p>I want to bind currency in drop down so that user can select its currency from dropdown and register in our system.</p> <p>So, do i create Currency as seperate aggregate ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload