Example #1
0
        override public void SetValue(DbParameter p, object value)
        {
            base.SetValue(p, value);
            if (value is string)
            {
                return;
            }
            var valueAsBool = value as bool?;

            if (valueAsBool != null)
            {
                // this is required for our bool fix-up for Oracle/MySQL, and does not change a thing on Devart
                p.DbType = DbType.Boolean;
            }
            var valueAsSByte = value as sbyte?;

            if (valueAsSByte != null)
            {
                // we have to set this to what it already is at this point, so that they know we really want to use the auto-assigned type
                p.SetRuntimeEnumProperty("MySqlType", "TinyInt", false);
            }
        }
Example #2
0
 override public bool SetCursor(DbParameter p, object value)
 {
     p.SetRuntimeEnumProperty("OracleDbType", "RefCursor");
     p.Value = value;
     return(true);
 }