-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yusuf Enes Aras
committed
Aug 22, 2021
1 parent
308ded8
commit 63f2ba9
Showing
58 changed files
with
93 additions
and
13 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-12 KB
(6.3%)
Business/obj/Debug/netstandard2.0/Business.csproj.AssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
ConsoleUI/obj/Debug/netcoreapp3.1/ConsoleUI.csproj.AssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using Core.DataAccess; | ||
using Entities.Concrete; | ||
using Entities.DTOs; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace DataAccess.Abstract | ||
{ | ||
public interface IRentalDal : IEntityRepository<Rental> | ||
{ | ||
List<RentalDetailDto> GetRentalDetails(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
using Core.DataAccess.EntityFramework; | ||
using DataAccess.Abstract; | ||
using Entities.Concrete; | ||
using Entities.DTOs; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
using System.Linq; | ||
namespace DataAccess.Concrete.EntityFramework | ||
{ | ||
public class EfRentalDal : EfEntityRepositoryBase<Rental, ReCapContext>, IRentalDal | ||
{ | ||
// equals -> eşit ise | ||
public List<RentalDetailDto> GetRentalDetails() | ||
{ | ||
using (ReCapContext context = new ReCapContext()) | ||
{ | ||
var result = from r in context.Rentals | ||
join cr in context.Cars | ||
on r.CarId equals cr.CarId | ||
join cs in context.Customers | ||
on r.CustomerId equals cs.CustomerId | ||
join br in context.Brands | ||
on cr.BrandId equals br.BrandId | ||
join u in context.Users | ||
on cs.UserId equals u.Id | ||
|
||
select new RentalDetailDto | ||
{ | ||
RentalId = r.Id, | ||
BrandName = br.BrandName, | ||
CustomerName = u.FirstName + " " + u.LastName, | ||
RentDate = r.RentDate, | ||
ReturnDate = r.ReturnDate, | ||
|
||
}; | ||
return result.ToList(); | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-17.7 KB
(0.061%)
DataAccess/obj/Debug/netstandard2.0/DataAccess.csproj.AssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Core.Entities; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Entities.DTOs | ||
{ | ||
public class RentalDetailDto:IDto | ||
{ | ||
public int RentalId { get; set; } | ||
public string BrandName { get; set; } | ||
public string CustomerName { get; set; } | ||
public DateTime RentDate { get; set; } | ||
public DateTime ReturnDate { get; set; } | ||
|
||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-98.5 KB
(0.011%)
Entities/obj/Debug/netstandard2.0/Entities.csproj.AssemblyReference.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Entities/obj/Debug/netstandard2.0/Entities.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
72f47d91b768cc3dd29cf8406463336c36526fe7 | ||
9f6e973c25150bfb9f9dcd80fe110efe6ca62ca2 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-178 KB
(1.4%)
WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.AssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.