e.g. 4.2 C# Repository Classes for the Member and Item Domain Classes
parent
d2fc9a6929
commit
f3116eaf94
|
@ -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 */ }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue