コード例 #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)));
            }
        }
コード例 #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)));
            }
        }
コード例 #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)));
            }
        }
コード例 #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)));
            }
        }
コード例 #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)));
            }
        }
コード例 #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)));
            }
        }
コード例 #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)));
            }
        }