public Int32 Delete(Database database, Guid rowGuidColumn) { var sp = new RowGuidColTableDelete(); sp.PK_RowGuidColumn = rowGuidColumn; return(sp.ExecuteNonQuery(database)); }
public Int32 Delete(Database database, Guid rowGuidColumn) { var sp = new RowGuidColTableDelete(); ((IDatabaseContext)sp).TransactionKey = this.TransactionKey; sp.PK_RowGuidColumn = rowGuidColumn; return(sp.ExecuteNonQuery(database)); }
public RowGuidColTableDelete CreateDeleteStoredProcedure(Record record) { var sp = new RowGuidColTableDelete(); if (record == null) { return(sp); } if (record.OldRecord == null) { throw new OldRecordIsNullException(); } sp.PK_RowGuidColumn = record.OldRecord.RowGuidColumn; return(sp); }
public RowGuidColTableDelete CreateDeleteStoredProcedure(Record record) { var sp = new RowGuidColTableDelete(); ((IDatabaseContext)sp).TransactionKey = this.TransactionKey; if (record == null) { return(sp); } if (record.OldRecord == null) { throw new OldRecordIsNullException(); } sp.PK_RowGuidColumn = record.OldRecord.RowGuidColumn; return(sp); }