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)); }
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)); }
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); }