Example #1
0
        public MultiPkTableInsert CreateInsertStoredProcedure(Record record)
        {
            var sp = new MultiPkTableInsert();

            if (record == null)
            {
                return(sp);
            }
            sp.BigIntColumn    = record.BigIntColumn;
            sp.IntColumn       = record.IntColumn;
            sp.FloatColumn     = record.FloatColumn;
            sp.BinaryColumn    = record.BinaryColumn;
            sp.TimestampColumn = record.TimestampColumn;
            sp.VarBinaryColumn = record.VarBinaryColumn;
            sp.BitColumn       = record.BitColumn;
            sp.NCharColumn     = record.NCharColumn;
            sp.NTextColumn     = record.NTextColumn;
            sp.NVarCharColumn  = record.NVarCharColumn;
            return(sp);
        }
Example #2
0
        public MultiPkTableInsert CreateInsertStoredProcedure(Record record)
        {
            var sp = new MultiPkTableInsert();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            if (record == null)
            {
                return(sp);
            }
            sp.BigIntColumn    = record.BigIntColumn;
            sp.IntColumn       = record.IntColumn;
            sp.FloatColumn     = record.FloatColumn;
            sp.BinaryColumn    = record.BinaryColumn;
            sp.TimestampColumn = record.TimestampColumn;
            sp.VarBinaryColumn = record.VarBinaryColumn;
            sp.BitColumn       = record.BitColumn;
            sp.NCharColumn     = record.NCharColumn;
            sp.NTextColumn     = record.NTextColumn;
            sp.NVarCharColumn  = record.NVarCharColumn;
            return(sp);
        }