public DataTable Retrieve(SearchOption SearchOption) { Int32 searchOption; switch (SearchOption) { case SearchOption.StartsWith: searchOption = 2; break; case SearchOption.Contains: searchOption = 3; break; case SearchOption.EndsWith: searchOption = 4; break; default: searchOption = 1; break; } return(WarehouseDac.Retrieve(this, searchOption).Tables[0]); }
public static DataTable Retrieve() { return(WarehouseDac.Retrieve().Tables[0]); }