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

            sp.PK_PrimaryKeyColumn = primaryKeyColumn;
            sp.PK_TimestampColumn  = timestampColumn;
            return(sp.ExecuteNonQuery(database));
        }
示例#2
0
        public AllDataTypeTable_AzureDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new AllDataTypeTable_AzureDelete();

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