Ejemplo n.º 1
0
        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)));
            }
        }
Ejemplo n.º 2
0
        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)));
            }
        }
Ejemplo n.º 3
0
        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)));
            }
        }
Ejemplo n.º 4
0
        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)));
            }
        }
Ejemplo n.º 5
0
        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)));
            }
        }
Ejemplo n.º 6
0
        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)));
            }
        }
Ejemplo n.º 7
0
        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)));
            }
        }