public int Update(OrderDetail ordDetail) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.ORDERDETAIL, new long[] { ordDetail.OrderId, ordDetail.ProductId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, ordDetail))); } else { return(GFXDDbi.Update(BuildQuery(statement, ordDetail))); } }
public int Update(Address address) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.ADDRESS, new long[] { address.AddressId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, address))); } else { return(GFXDDbi.Update(BuildQuery(statement, address))); } }
public int Update(Supplier supplier) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.SUPPLIER, new long[] { supplier.SupplierId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, supplier))); } else { return(GFXDDbi.Update(BuildQuery(statement, supplier))); } }
public int Update(Product product) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.PRODUCT, new long[] { product.ProductId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, product))); } else { return(GFXDDbi.Update(BuildQuery(statement, product))); } }
public int Update(Customer customer) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.CUSTOMER, new long[] { customer.CustomerId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, customer))); } else { return(GFXDDbi.Update(BuildQuery(statement, customer))); } }
public int Update(Category category) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.CATEGORY, new long[] { category.CategoryId })); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, category))); } else { return(GFXDDbi.Update(BuildQuery(statement, category))); } }
public int Update(Order order) { String statement = QualifyTableName(DbDefault.GetUpdateStatement( TableName.ORDERS, new long[] { order.OrderId })); File.AppendAllText(@"C:\ORDERS.txt", statement); if (Connection != null) { return(GFXDDbi.Update(Connection, BuildQuery(statement, order))); } else { return(GFXDDbi.Update(BuildQuery(statement, order))); } }