fixed include errors
This commit is contained in:
26
.idea/.idea.BookHive/.idea/workspace.xml
generated
26
.idea/.idea.BookHive/.idea/workspace.xml
generated
@@ -7,24 +7,21 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="4c0ad985-5b6e-4587-85a5-1b48273bdb1d" name="Changes" comment="">
|
<list default="true" id="4c0ad985-5b6e-4587-85a5-1b48273bdb1d" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.BookHive/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.BookHive/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/.idea.BookHive/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.BookHive/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Program.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/Endpoints/Reviews/CreateReviewEndpoint.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Endpoints/Reviews/CreateReviewEndpoint.cs" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/BookHive/Specifications/Authors/GetAuthorByIdSpec.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Specifications/Authors/GetAuthorByIdSpec.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Specifications/Books/GetBookByIdSpec.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Specifications/Books/GetBookByIdSpec.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/Specifications/Books/GetBookByIdSpec.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Specifications/Books/GetBookByIdSpec.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Validators/Books/CreateBookDtoValidator.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Validators/Books/CreateBookDtoValidator.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/Specifications/Members/GetMemberByIdSpec.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Specifications/Members/GetMemberByIdSpec.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Validators/Loans/CreateLoanDtoValidator.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Validators/Loans/CreateLoanDtoValidator.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/Specifications/Reviews/GetReviewByBookIdSpec.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Specifications/Reviews/GetReviewByBookIdSpec.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Validators/Reviews/CreateReviewDtoValidator.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Validators/Reviews/CreateReviewDtoValidator.cs" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/Validators/Reviews/UpdateReviewDtoValidator.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/Validators/Reviews/UpdateReviewDtoValidator.cs" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.dll" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.dll" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.pdb" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/bin/Debug/net10.0/BookHive.pdb" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfo.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfo.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfo.cs" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfo.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfoInputs.cache" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfoInputs.cache" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfoInputs.cache" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.AssemblyInfoInputs.cache" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.csproj.CoreCompileInputs.cache" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.csproj.CoreCompileInputs.cache" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.dll" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.dll" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.pdb" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/BookHive.pdb" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/ref/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/ref/BookHive.dll" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/ref/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/ref/BookHive.dll" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/refint/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/refint/BookHive.dll" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/refint/BookHive.dll" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/refint/BookHive.dll" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmrazor.dswa.cache.json" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmrazor.dswa.cache.json" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmrazor.dswa.cache.json" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/Debug/net10.0/rjsmrazor.dswa.cache.json" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BookHive/obj/rider.project.restore.info" beforeDir="false" afterPath="$PROJECT_DIR$/BookHive/obj/rider.project.restore.info" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@@ -132,7 +129,7 @@
|
|||||||
<updated>1773087844958</updated>
|
<updated>1773087844958</updated>
|
||||||
<workItem from="1773087846465" duration="527000" />
|
<workItem from="1773087846465" duration="527000" />
|
||||||
<workItem from="1773088517368" duration="6491000" />
|
<workItem from="1773088517368" duration="6491000" />
|
||||||
<workItem from="1773126764051" duration="8401000" />
|
<workItem from="1773126764051" duration="11148000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="first commit">
|
<task id="LOCAL-00001" summary="first commit">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
@@ -182,7 +179,15 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1773132752060</updated>
|
<updated>1773132752060</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="7" />
|
<task id="LOCAL-00007" summary="Created all validators">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1773135809526</created>
|
||||||
|
<option name="number" value="00007" />
|
||||||
|
<option name="presentableId" value="LOCAL-00007" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1773135809527</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="8" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@@ -197,7 +202,8 @@
|
|||||||
<MESSAGE value="fix error with sending responses" />
|
<MESSAGE value="fix error with sending responses" />
|
||||||
<MESSAGE value="insert datas" />
|
<MESSAGE value="insert datas" />
|
||||||
<MESSAGE value="added validators in project" />
|
<MESSAGE value="added validators in project" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="added validators in project" />
|
<MESSAGE value="Created all validators" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Created all validators" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public class CreateReviewEndpoint(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/books/{@BookId}/reviews/");
|
Post("/books/{@BookId}/reviews/", x => new { x.BookId });
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ public class GetAuthorByIdSpec : SingleResultSpecification<Author>
|
|||||||
public GetAuthorByIdSpec(int authorId)
|
public GetAuthorByIdSpec(int authorId)
|
||||||
{
|
{
|
||||||
Query
|
Query
|
||||||
|
.Include(x => x.Books)
|
||||||
.Where(x => x.Id == authorId);
|
.Where(x => x.Id == authorId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,8 @@ public class GetBookByIdSpec : SingleResultSpecification<Book>
|
|||||||
{
|
{
|
||||||
Query
|
Query
|
||||||
.Include(x => x.Author)
|
.Include(x => x.Author)
|
||||||
|
.Include(x => x.Reviews)!
|
||||||
|
.ThenInclude(x => x.Member)
|
||||||
.Where(x => x.Id == bookId);
|
.Where(x => x.Id == bookId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,11 @@ public class GetMemberByIdSpec : SingleResultSpecification<Member>
|
|||||||
public GetMemberByIdSpec(int memberId)
|
public GetMemberByIdSpec(int memberId)
|
||||||
{
|
{
|
||||||
Query
|
Query
|
||||||
|
.Include(x => x.Loans)!
|
||||||
|
.ThenInclude(x => x.Book)
|
||||||
|
.ThenInclude(a => a!.Author)
|
||||||
|
.Include(x => x.Reviews)!
|
||||||
|
.ThenInclude(x => x.Book)
|
||||||
.Where(x => x.Id == memberId);
|
.Where(x => x.Id == memberId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,8 @@ public class GetReviewByBookIdSpec : Specification<Review>
|
|||||||
public GetReviewByBookIdSpec(int bookId)
|
public GetReviewByBookIdSpec(int bookId)
|
||||||
{
|
{
|
||||||
Query
|
Query
|
||||||
.Where(x => x.Id == bookId);
|
.Include(x => x.Book)
|
||||||
|
.Include(x => x.Member)
|
||||||
|
.Where(x => x.BookId == bookId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("BookHive")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("BookHive")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9f858df5f8559ef4eece66d288194275a0509245")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5c3419abc08910adfc0bd0df1cef354d82ddee0d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("BookHive")]
|
[assembly: System.Reflection.AssemblyProductAttribute("BookHive")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("BookHive")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("BookHive")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
24c20bc00ebed273ed8d88d70e9db8fba99e16f4c11f44fa290911d9e2a0ca7d
|
988bc7daa83de020c9e2c465f3bb5ccb6f6a9f622783496806f4024800fd6681
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
{"GlobalPropertiesHash":"GuRprL5mC7hc0CG8FgEPpIWKx/Dfl1Jhxvhk8sWxBEQ=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kIO\u002BgVQX72rEP/AM8N4erO8boVd0NQ5bkxTtUbSKS9I=","Uf8MX/\u002BVloY39fAvymRXdZ4qt/FRES4KRvClr57fYDU=","lfZuIjVBvtBmrqX0WvkpZ3DYOYwGL3QDuIUtKarpEII=","cKn2pHge4p72bHZX6RcPkCSMotE3yKol468IJfCIBSs=","YDM8gir9t/JobnY2IBraj9MVLPnhuLmU9uuLWanHPfo="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
{"GlobalPropertiesHash":"GuRprL5mC7hc0CG8FgEPpIWKx/Dfl1Jhxvhk8sWxBEQ=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kIO\u002BgVQX72rEP/AM8N4erO8boVd0NQ5bkxTtUbSKS9I=","Uf8MX/\u002BVloY39fAvymRXdZ4qt/FRES4KRvClr57fYDU=","lfZuIjVBvtBmrqX0WvkpZ3DYOYwGL3QDuIUtKarpEII=","cKn2pHge4p72bHZX6RcPkCSMotE3yKol468IJfCIBSs=","QJhLWJPEaDnltsgWDVrU9lZdjsiJpD6sJFIWFu9vOCA="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
||||||
@@ -1 +1 @@
|
|||||||
{"GlobalPropertiesHash":"03RR8FZ+u5Ay9wTZirfGS5vS3BFumeGaLKPk0IyeRqs=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kIO\u002BgVQX72rEP/AM8N4erO8boVd0NQ5bkxTtUbSKS9I=","Uf8MX/\u002BVloY39fAvymRXdZ4qt/FRES4KRvClr57fYDU=","lfZuIjVBvtBmrqX0WvkpZ3DYOYwGL3QDuIUtKarpEII=","cKn2pHge4p72bHZX6RcPkCSMotE3yKol468IJfCIBSs=","YDM8gir9t/JobnY2IBraj9MVLPnhuLmU9uuLWanHPfo="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
{"GlobalPropertiesHash":"03RR8FZ+u5Ay9wTZirfGS5vS3BFumeGaLKPk0IyeRqs=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kIO\u002BgVQX72rEP/AM8N4erO8boVd0NQ5bkxTtUbSKS9I=","Uf8MX/\u002BVloY39fAvymRXdZ4qt/FRES4KRvClr57fYDU=","lfZuIjVBvtBmrqX0WvkpZ3DYOYwGL3QDuIUtKarpEII=","cKn2pHge4p72bHZX6RcPkCSMotE3yKol468IJfCIBSs=","QJhLWJPEaDnltsgWDVrU9lZdjsiJpD6sJFIWFu9vOCA="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
||||||
Reference in New Issue
Block a user