public static DataTable GetTable() { Type t = null; ProdcuctDB db = new ProdcuctDB(); return((DataTable)(db.RetrieveAll(t))); }
protected override void SetUp() { mProps = new ProductProps(); mOldProps = new ProductProps(); if (this.mConnectionString == "") { mdbReadable = new ProdcuctDB(); mdbWriteable = new ProdcuctDB(); } else { mdbReadable = new ProdcuctDB(this.mConnectionString); mdbWriteable = new ProdcuctDB(this.mConnectionString); } }
public static void Delete(Product id, string cnString) { ProdcuctDB db = new ProdcuctDB(cnString); db.Delete((IBaseProps)id); }
/// <summary> /// Deletes the customer identified by the id. /// </summary> public static void Delete(Product id) { ProdcuctDB db = new ProdcuctDB(); db.Delete((IBaseProps)id); }