Ejemplo n.º 1
0
        public long Insert(Address address)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.ADDRESS, new long[] { address.AddressId }));

            statement = BuildQuery(statement, address);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }
Ejemplo n.º 2
0
        public long Insert(OrderDetail ordDetail)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.ORDERDETAIL, new long[] { ordDetail.OrderId, ordDetail.ProductId }));

            statement = BuildQuery(statement, ordDetail);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }
Ejemplo n.º 3
0
        public long Insert(Supplier supplier)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.SUPPLIER, new long[] { supplier.SupplierId }));

            statement = BuildQuery(statement, supplier);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }
Ejemplo n.º 4
0
        public long Insert(Product product)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.PRODUCT, new long[] { product.ProductId }));

            statement = BuildQuery(statement, product);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }
Ejemplo n.º 5
0
        public long Insert(Customer customer)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.CUSTOMER, new long[] { customer.CustomerId }));

            statement = BuildQuery(statement, customer);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }
Ejemplo n.º 6
0
        public long Insert(Category category)
        {
            String statement = QualifyTableName(DbDefault.GetInsertStatement(
                                                    TableName.CATEGORY, new long[] { category.CategoryId }));

            statement = BuildQuery(statement, category);

            if (Connection != null)
            {
                return(GFXDDbi.Insert(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Insert(statement));
            }
        }