private NativeDBType GetBindType(object value)
        {
            NativeDBType type = this._metaType;

            if (type != null)
            {
                return(type);
            }
            if (ADP.IsNull(value))
            {
                return(NativeDBType.Default);
            }
            return(NativeDBType.FromSystemType(value));
        }
Beispiel #2
0
        private NativeDBType GetBindType(object value)
        {
            NativeDBType dbtype = _metaType;

            if (null == dbtype)
            {
                if (ADP.IsNull(value))
                {
                    dbtype = OleDb.NativeDBType.Default;
                }
                else
                {
                    dbtype = NativeDBType.FromSystemType(value);
                }
            }
            return(dbtype);
        }