-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Order Header and Order Detail Repository
- Loading branch information
aliarmaganuygun
committed
Oct 19, 2024
1 parent
2567182
commit e869d0f
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Bulky.DataAccess/Repository/IRepository/IOrderDetailRepository.cs
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,9 @@ | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository.IRepository | ||
{ | ||
public interface IOrderDetailRepository : IRepository<OrderDetail> | ||
{ | ||
void Update(OrderDetail obj); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Bulky.DataAccess/Repository/IRepository/IOrderHeaderRepository.cs
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,9 @@ | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository.IRepository | ||
{ | ||
public interface IOrderHeaderRepository : IRepository<OrderHeader> | ||
{ | ||
void Update(OrderHeader obj); | ||
} | ||
} |
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,21 @@ | ||
using BookBazaar.DataAccess.Data; | ||
using BookBazaar.DataAccess.Repository.IRepository; | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository | ||
{ | ||
public class OrderDetailRepository : Repository<OrderDetail>, IOrderDetailRepository | ||
{ | ||
private readonly ApplicationDbContext _db; | ||
|
||
public OrderDetailRepository(ApplicationDbContext db) : base(db) | ||
{ | ||
_db = db; | ||
} | ||
|
||
public void Update(OrderDetail obj) | ||
{ | ||
_db.Update(obj); | ||
} | ||
} | ||
} |
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,21 @@ | ||
using BookBazaar.DataAccess.Data; | ||
using BookBazaar.DataAccess.Repository.IRepository; | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository | ||
{ | ||
public class OrderHeaderRepository : Repository<OrderHeader>, IOrderHeaderRepository | ||
{ | ||
private readonly ApplicationDbContext _db; | ||
|
||
public OrderHeaderRepository(ApplicationDbContext db) : base(db) | ||
{ | ||
_db = db; | ||
} | ||
|
||
public void Update(OrderHeader obj) | ||
{ | ||
_db.Update(obj); | ||
} | ||
} | ||
} |
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