Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Medic
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
hasan.bahjat
Medic
Commits
3160c673
Commit
3160c673
authored
May 27, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify entites
parent
f1d6f3f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
Category.cs
ApplicationCore/Entities/Category.cs
+4
-0
Ingredient.cs
ApplicationCore/Entities/Ingredient.cs
+3
-0
Medicine.cs
ApplicationCore/Entities/Medicine.cs
+11
-1
No files found.
ApplicationCore/Entities/Category.cs
View file @
3160c673
...
...
@@ -10,5 +10,9 @@ namespace ApplicationCore.Entities
{
public
String
Name
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
public
void
AddMedicine
(
Medicine
medicine
)
{
Medicines
.
Add
(
medicine
);
}
}
}
ApplicationCore/Entities/Ingredient.cs
View file @
3160c673
...
...
@@ -12,5 +12,8 @@ namespace ApplicationCore.Entities
public
String
Description
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
public
ICollection
<
MedicineIngredient
>
MedicineIngredients
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Medicine.cs
View file @
3160c673
...
...
@@ -20,6 +20,16 @@ namespace ApplicationCore.Entities
public
ICollection
<
Patient
>
Patients
{
get
;
set
;
}
public
ICollection
<
PatientMedicine
>
PatientMedicines
{
get
;
set
;
}
public
void
AddIngredient
(
Ingredient
ingredient
,
int
ratio
)
{
MedicineIngredients
.
Add
(
new
MedicineIngredient
{
Ingredient
=
ingredient
,
Ratio
=
ratio
,
Medicine
=
this
});
}
...
...
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