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
c7511bcc
Commit
c7511bcc
authored
May 21, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding Domain Entities
parent
13bc2dcc
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
147 additions
and
0 deletions
+147
-0
EntityBase.cs
ApplicationCore/Entities/Base/EntityBase.cs
+14
-0
Category.cs
ApplicationCore/Entities/Category.cs
+14
-0
User.cs
ApplicationCore/Entities/Identity Entitis/User.cs
+12
-0
Ingredient.cs
ApplicationCore/Entities/Ingredient.cs
+16
-0
Medicine.cs
ApplicationCore/Entities/Medicine.cs
+22
-0
MedicineIngredient.cs
ApplicationCore/Entities/MedicineIngredient.cs
+18
-0
MedicineType.cs
ApplicationCore/Entities/MedicineType.cs
+14
-0
Patient.cs
ApplicationCore/Entities/Patient.cs
+20
-0
PatientMedicine.cs
ApplicationCore/Entities/PatientMedicine.cs
+17
-0
No files found.
ApplicationCore/Entities/Base/EntityBase.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
EntityBase
{
public
int
Id
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Category.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
Category
:
EntityBase
{
public
String
Name
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Identity Entitis/User.cs
0 → 100644
View file @
c7511bcc
using
Microsoft.AspNetCore.Identity
;
using
System
;
namespace
ApplicationCore.Entities
{
public
class
User
:
IdentityUser
{
public
DateTime
CreationTime
{
get
;
set
;
}
public
int
PatientId
{
get
;
set
;
}
public
Patient
Patient
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Ingredient.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
Ingredient
:
EntityBase
{
public
String
Name
{
get
;
set
;
}
public
String
Description
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
public
ICollection
<
MedicineIngredient
>
MedicineIngredients
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Medicine.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
Medicine
:
EntityBase
{
public
String
Name
{
get
;
set
;
}
public
String
Description
{
get
;
set
;
}
public
int
Price
{
get
;
set
;
}
public
int
Dosage
{
get
;
set
;
}
public
Category
Category
{
get
;
set
;
}
public
MedicineType
MedicineType
{
get
;
set
;
}
public
ICollection
<
Ingredient
>
Ingredients
{
get
;
set
;
}
public
ICollection
<
MedicineIngredient
>
MedicineIngredients
{
get
;
set
;
}
}
}
ApplicationCore/Entities/MedicineIngredient.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
MedicineIngredient
:
EntityBase
{
public
int
Ratio
{
get
;
set
;
}
public
int
MedicineId
{
get
;
set
;
}
public
int
IngredientId
{
get
;
set
;
}
public
Medicine
Medicine
{
get
;
set
;
}
public
Ingredient
Ingredient
{
get
;
set
;
}
}
}
ApplicationCore/Entities/MedicineType.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
MedicineType
:
EntityBase
{
public
String
TypeName
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Patient.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
Patient
:
EntityBase
{
public
String
FirstName
{
get
;
set
;
}
public
String
LastName
{
get
;
set
;
}
public
String
Avatar
{
get
;
set
;
}
public
User
User
{
get
;
set
;
}
public
String
BIO
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
public
ICollection
<
PatientMedicine
>
PatientMedicines
{
get
;
set
;
}
}
}
ApplicationCore/Entities/PatientMedicine.cs
0 → 100644
View file @
c7511bcc
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Entities
{
public
class
PatientMedicine
:
EntityBase
{
public
DateTime
PrescripDate
{
get
;
set
;
}
public
int
MedicineId
{
get
;
set
;
}
public
int
PatientId
{
get
;
set
;
}
public
Medicine
Medicine
{
get
;
set
;
}
public
Patient
Patient
{
get
;
set
;
}
}
}
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