Exemplo n.º 1
0
        public int Delete(long addressId)
        {
            String statement = DbDefault.GetDeleteStatement(
                TableName.ADDRESS, new long[] { addressId });

            if (Connection != null)
            {
                return(GFXDDbi.Delete(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Delete(statement));
            }
        }
Exemplo n.º 2
0
        public int Delete(long supplierId)
        {
            String statement = QualifyTableName(DbDefault.GetDeleteStatement(
                                                    TableName.SUPPLIER, new long[] { supplierId }));

            if (Connection != null)
            {
                return(GFXDDbi.Delete(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Delete(statement));
            }
        }
Exemplo n.º 3
0
        public int Delete(long orderId, long productId)
        {
            String statement = QualifyTableName(DbDefault.GetDeleteStatement(
                                                    TableName.ORDERDETAIL, new long[] { orderId, productId }));

            if (Connection != null)
            {
                return(GFXDDbi.Delete(Connection, statement));
            }
            else
            {
                return(GFXDDbi.Delete(statement));
            }
        }
Exemplo n.º 4
0
        public int Delete(long categoryId)
        {
            String statement = QualifyTableName(DbDefault.GetDeleteStatement(
                                                    TableName.CATEGORY, new long[] { categoryId }));

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