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
ae1463e6
Commit
ae1463e6
authored
Jun 16, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add exception core
parent
9eece958
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
52 additions
and
13 deletions
+52
-13
IUnitOfWork.cs
ApplicationDomain/Abstraction/IUnitOfWork.cs
+1
-0
ApplicationDomain.csproj
ApplicationDomain/ApplicationDomain.csproj
+0
-4
Ingredient.cs
ApplicationDomain/Entities/Ingredients/Ingredient.cs
+0
-0
MedicineIngredient.cs
ApplicationDomain/Entities/Ingredients/MedicineIngredient.cs
+0
-0
CoreException.cs
ApplicationDomain/Exceptions/CoreException.cs
+21
-0
IIngredientRepository.cs
ApplicationDomain/Rspositories/IIngredientRepository.cs
+11
-0
IMedicineRepository.cs
ApplicationDomain/Rspositories/IMedicineRepository.cs
+0
-1
IPatientRepository.cs
ApplicationDomain/Rspositories/IPatientRepository.cs
+11
-0
IngredientWithMedicinesSpecification.cs
...in/Specifications/IngredientWithMedicinesSpecification.cs
+2
-2
MedicalStateWithMedicinesSpecification.cs
.../Specifications/MedicalStateWithMedicinesSpecification.cs
+2
-2
MedicineWithIngredientsSpecification.cs
...in/Specifications/MedicineWithIngredientsSpecification.cs
+2
-2
PatientWithMedicinesSpecification.cs
...omain/Specifications/PatientWithMedicinesSpecification.cs
+2
-2
No files found.
ApplicationDomain/Abstraction/IUnitOfWork.cs
View file @
ae1463e6
...
@@ -7,6 +7,7 @@ namespace ApplicationDomain.Abstraction
...
@@ -7,6 +7,7 @@ namespace ApplicationDomain.Abstraction
{
{
IGenericRepository
<
T
>
Entity
{
get
;
}
IGenericRepository
<
T
>
Entity
{
get
;
}
void
Save
();
void
Save
();
}
}
...
...
ApplicationDomain/ApplicationDomain.csproj
View file @
ae1463e6
...
@@ -17,8 +17,4 @@
...
@@ -17,8 +17,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</PackageReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<Folder Include="Exceptions\" />
</ItemGroup>
</Project>
</Project>
ApplicationDomain/Entities/
Medicine
s/Ingredient.cs
→
ApplicationDomain/Entities/
Ingredient
s/Ingredient.cs
View file @
ae1463e6
File moved
ApplicationDomain/Entities/
Medicine
s/MedicineIngredient.cs
→
ApplicationDomain/Entities/
Ingredient
s/MedicineIngredient.cs
View file @
ae1463e6
File moved
ApplicationDomain/Exceptions/CoreException.cs
0 → 100644
View file @
ae1463e6
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationDomain.Exceptions
{
public
class
CoreException
:
Exception
{
internal
CoreException
(
string
businessMessage
)
:
base
(
businessMessage
)
{
}
internal
CoreException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
}
}
ApplicationDomain/Rspositories/IIngredientRepository.cs
0 → 100644
View file @
ae1463e6
using
ApplicationDomain.Entities
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
ApplicationDomain.Repositories
{
public
interface
IIngredientRepository
:
IGenericRepository
<
Ingredient
>
{
public
Task
<
IEnumerable
<
Ingredient
>>
GetByName
(
string
Name
);
}
}
ApplicationDomain/Rspositories/IMedicineRepository.cs
View file @
ae1463e6
...
@@ -12,5 +12,4 @@ namespace ApplicationDomain.Repositories
...
@@ -12,5 +12,4 @@ namespace ApplicationDomain.Repositories
{
{
public
Task
<
IEnumerable
<
Medicine
>>
GetByMedicalState
(
int
medicalStateId
);
public
Task
<
IEnumerable
<
Medicine
>>
GetByMedicalState
(
int
medicalStateId
);
}
}
}
}
ApplicationDomain/Rspositories/IPatientRepository.cs
0 → 100644
View file @
ae1463e6
using
ApplicationDomain.Entities
;
using
System.Threading.Tasks
;
namespace
ApplicationDomain.Repositories
{
public
interface
IPatientRepository
:
IGenericRepository
<
Patient
>
{
public
Task
<
Patient
>
GetByUserId
(
string
userId
);
}
}
ApplicationDomain/Specifications/IngredientSpecification.cs
→
ApplicationDomain/Specifications/Ingredient
WithMedicines
Specification.cs
View file @
ae1463e6
...
@@ -8,10 +8,10 @@ using System.Threading.Tasks;
...
@@ -8,10 +8,10 @@ using System.Threading.Tasks;
namespace
ApplicationDomain.Specification
namespace
ApplicationDomain.Specification
{
{
public
class
IngredientSpecification
:
BaseSpecification
<
Ingredient
>
public
class
Ingredient
WithMedicines
Specification
:
BaseSpecification
<
Ingredient
>
{
{
public
IngredientSpecification
()
public
Ingredient
WithMedicines
Specification
()
{
{
AddInclude
(
p
=>
p
.
MedicineIngredients
);
AddInclude
(
p
=>
p
.
MedicineIngredients
);
...
...
ApplicationDomain/Specifications/MedicalStateSpecification.cs
→
ApplicationDomain/Specifications/MedicalState
WithMedicines
Specification.cs
View file @
ae1463e6
...
@@ -9,10 +9,10 @@ using System.Threading.Tasks;
...
@@ -9,10 +9,10 @@ using System.Threading.Tasks;
namespace
ApplicationDomain.Specification
namespace
ApplicationDomain.Specification
{
{
public
class
MedicalStateSpecification
:
BaseSpecification
<
MedicalState
>
public
class
MedicalState
WithMedicines
Specification
:
BaseSpecification
<
MedicalState
>
{
{
public
MedicalStateSpecification
(
Expression
<
Func
<
MedicalState
,
bool
>>
criteria
=
null
)
public
MedicalState
WithMedicines
Specification
(
Expression
<
Func
<
MedicalState
,
bool
>>
criteria
=
null
)
:
base
(
criteria
)
:
base
(
criteria
)
{
{
...
...
ApplicationDomain/Specifications/Medicine
Ingredient
Specification.cs
→
ApplicationDomain/Specifications/Medicine
WithIngredients
Specification.cs
View file @
ae1463e6
...
@@ -8,10 +8,10 @@ using System.Threading.Tasks;
...
@@ -8,10 +8,10 @@ using System.Threading.Tasks;
namespace
ApplicationDomain.Specification
namespace
ApplicationDomain.Specification
{
{
public
class
Medicine
Ingredient
Specification
:
BaseSpecification
<
Medicine
>
public
class
Medicine
WithIngredients
Specification
:
BaseSpecification
<
Medicine
>
{
{
public
Medicine
Ingredient
Specification
(
)
public
Medicine
WithIngredients
Specification
(
)
{
{
AddInclude
(
p
=>
p
.
MedicineIngredients
);
AddInclude
(
p
=>
p
.
MedicineIngredients
);
...
...
ApplicationDomain/Specifications/PatientMedicinesSpecification.cs
→
ApplicationDomain/Specifications/Patient
With
MedicinesSpecification.cs
View file @
ae1463e6
...
@@ -8,9 +8,9 @@ using System.Threading.Tasks;
...
@@ -8,9 +8,9 @@ using System.Threading.Tasks;
namespace
ApplicationDomain.Specification
namespace
ApplicationDomain.Specification
{
{
public
class
PatientMedicinesSpecification
:
BaseSpecification
<
Patient
>
public
class
Patient
With
MedicinesSpecification
:
BaseSpecification
<
Patient
>
{
{
public
PatientMedicinesSpecification
()
public
Patient
With
MedicinesSpecification
()
{
{
AddInclude
(
p
=>
p
.
MedicalStates
);
AddInclude
(
p
=>
p
.
MedicalStates
);
AddInclude
(
p
=>
p
.
User
);
AddInclude
(
p
=>
p
.
User
);
...
...
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