Пример #1
0
        public Int32 Delete(Database database, Int64 bigIntColumn, Int32 intColumn, Single floatColumn, DateTime?timestampColumn)
        {
            var sp = new multipktableDelete();

            sp.PK_BigIntColumn    = bigIntColumn;
            sp.PK_IntColumn       = intColumn;
            sp.PK_FloatColumn     = floatColumn;
            sp.PK_TimestampColumn = timestampColumn;
            return(sp.ExecuteNonQuery(database));
        }
Пример #2
0
        public Int32 Delete(Database database, Int64 bigIntColumn, Int32 intColumn, Single floatColumn, DateTime timestampColumn)
        {
            var sp = new multipktableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            sp.PK_BigIntColumn    = bigIntColumn;
            sp.PK_IntColumn       = intColumn;
            sp.PK_FloatColumn     = floatColumn;
            sp.PK_TimestampColumn = timestampColumn;
            return(sp.ExecuteNonQuery(database));
        }
Пример #3
0
        public multipktableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new multipktableDelete();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_BigIntColumn    = record.OldRecord.BigIntColumn;
            sp.PK_IntColumn       = record.OldRecord.IntColumn;
            sp.PK_FloatColumn     = record.OldRecord.FloatColumn;
            sp.PK_TimestampColumn = record.OldRecord.TimestampColumn;
            return(sp);
        }