コード例 #1
0
        public Int32 Delete(Database database, Guid rowGuidColumn)
        {
            var sp = new RowGuidColTableDelete();

            sp.PK_RowGuidColumn = rowGuidColumn;
            return(sp.ExecuteNonQuery(database));
        }
コード例 #2
0
ファイル: RowGuidColTable.cs プロジェクト: youye00/higlabo
        public Int32 Delete(Database database, Guid rowGuidColumn)
        {
            var sp = new RowGuidColTableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            sp.PK_RowGuidColumn = rowGuidColumn;
            return(sp.ExecuteNonQuery(database));
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: RowGuidColTable.cs プロジェクト: youye00/higlabo
        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);
        }