Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
964853eb
Commit
964853eb
authored
Aug 16, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Update family member entity
parent
56077e5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
FamilyMember.cs
...kend/Domain/Entities/People/FamilyMembers/FamilyMember.cs
+37
-1
No files found.
Clinics.Backend/Domain/Entities/People/FamilyMembers/FamilyMember.cs
View file @
964853eb
...
...
@@ -3,11 +3,47 @@ using Domain.Primitives;
namespace
Domain.Entities.People.FamilyMembers
;
public
sealed
class
FamilyMember
(
int
id
)
:
Entity
(
id
)
public
sealed
class
FamilyMember
:
Entity
{
#
region
Private
ctor
private
FamilyMember
(
int
id
)
:
base
(
id
)
{
}
private
FamilyMember
(
int
id
,
Patient
patient
)
:
base
(
id
)
{
Patient
=
patient
;
}
#
endregion
#
region
Properties
public
Patient
Patient
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Methods
#
region
Static
factory
public
static
FamilyMember
Create
(
string
firstName
,
string
middleName
,
string
lastName
,
DateOnly
dateOfBirth
,
string
gender
)
{
Patient
patient
;
try
{
patient
=
Patient
.
Create
(
firstName
,
middleName
,
lastName
,
dateOfBirth
,
gender
);
}
catch
{
throw
;
}
return
new
FamilyMember
(
0
,
patient
);
}
#
endregion
#
endregion
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment