e.g. 4.2 C# Repository Classes for the Member and Item Domain Classes

chap4
Jason Zhu 2021-07-08 10:56:01 +10:00
parent d2fc9a6929
commit f3116eaf94
1 changed files with 15 additions and 0 deletions

View File

@ -32,4 +32,19 @@ namespace TheMVCPattern
public DateTime DatePlaced { get; set; }
public decimal BidAmount { get; set; }
}
public class MembersRepository
{
public void AddMember(Member member) { /* Implement me */ }
public Member FetchByLoginName(string loginName) { /* Implement me */ }
public void SubmitChanges() { /* Implement me */ }
}
public class ItemRepository
{
public void AddItem(Item item) { /* Implement me */ }
public Item FetchByID(int itemID) { /* Implement me */}
public IList<Item> ListItems(int pageSize, int pageIndex) { /* Implement me */ }
public void SubmitChanges() { /* Implement me */ }
}
}