Note that there are some explanatory texts on larger screens.

plurals
  1. PObest way to create domain design model?
    primarykey
    data
    text
    <p>UPDATE:</p> <p>what i am looking is should i go create each classes seprately instead of adding getter/setter prop in the class, what i mean by that is:</p> <p>so in order to create a Visit i should have the following prop in VISIT</p> <pre><code>VisitName, Purpose, StartDate, EndDate, HostId, HostName, RequesterId, RequeserName </code></pre> <p>or should i have this:</p> <pre><code>VisitName, Purpose, StartDate, EndDate, IPerson Host, IPerson Requester </code></pre> <p>END UPDATE</p> <p>i need advice/feedback if i am going on the right direction below is the domain model (part of the project not entirly).</p> <p>i have class called "Visit" in that Visit model i will have basic of visit like name,purpose,start,end date etc... and in that class i also have who will be hosting the visit and who request the visit.</p> <p>what do you think of the below class? </p> <p><img src="https://i.stack.imgur.com/UcEs7.png" alt="enter image description here"></p> <pre><code> //aggreate class public class Visit { IVisitBasic _visitBasic; IPerson _host; IPerson _requester; public IVisitBasic VisitBasic { get { return _visitBasic; } set { _visitBasic = value; } } public IPerson Host { get { return _host; } set { _host = value; } } public IPerson Requester { get { return _requester; } set { _requester = value; } } public Visit(IVisitBasic visitBasic, IPerson host, IPerson requester) { _visitBasic = visitBasic; _host = host; _requester = requester; } public Visit() { } </code></pre> <p>}</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.
 

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