コード例 #1
0
        public Int32 Delete(Database database, Int64 primaryKeyColumn, Byte[] timestampColumn)
        {
            var sp = new AllDataTypeTableDelete();

            sp.PK_PrimaryKeyColumn = primaryKeyColumn;
            sp.PK_TimestampColumn  = timestampColumn;
            return(sp.ExecuteNonQuery(database));
        }
コード例 #2
0
ファイル: AllDataTypeTable.cs プロジェクト: hungud/higlabo
        public Int32 Delete(Database database, Int64 primaryKeyColumn, Byte[] timestampColumn)
        {
            var sp = new AllDataTypeTableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            sp.PK_PrimaryKeyColumn = primaryKeyColumn;
            sp.PK_TimestampColumn  = timestampColumn;
            return(sp.ExecuteNonQuery(database));
        }
コード例 #3
0
        public AllDataTypeTableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new AllDataTypeTableDelete();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_PrimaryKeyColumn = record.OldRecord.PrimaryKeyColumn;
            sp.PK_TimestampColumn  = record.OldRecord.TimestampColumn;
            return(sp);
        }