Slide 9
Slide 9 text
Example #2
public interface A
{
public void Add(Customer customerToAdd);
public void Delete(Customer customerToDelete);
public void Update(Customer customerToUpdate);
public IEnumerable
searchCriteria);
}
public interface A
{
public void Add(int customerId, string customerName);
public void Delete(int customerId);
public void Delete(Customer customer, string customerId,
bool shouldValidate = false);
public void Update(Customer customer);
public void OpenDatabase(string connection);
public bool ShouldUseFileInsteadOfDatabase { get; set; }
public List GetAllCustomers();
public IEnumerable
GetAllCustomersAsEnumerable();
public bool Connect();
public List GetAllDatabaseRecords(bool
isSqlServer);
public List GetSingleCustomer(int
customerId);
public void Close(int handle, bool shouldClose);
public void Close(int handle, bool shouldClose, bool
alt);
}