dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBDataReader Class
Fields Properties Methods


On this page
    MongoDBDataReader Class Members
    On this page

    The following tables list the members exposed by MongoDBDataReader.

    Protected Fields
     NameDescription
    Protected Field (Inherited from Devart.Common.DbDataReaderBase)
    Protected Field (Inherited from Devart.Common.DbDataReaderBase)
    Top
    Public Properties
     NameDescription
    Public PropertyGets a value indicating the depth of nesting for the current row. (Inherited from Devart.Common.DbDataReaderBase)
    Public PropertyOverridden. Gets a value indicating whether the reader is closed or has no more rows.  
    Public PropertyOverridden. Gets the number of columns in the current row. In the native mode with ReaderType=Default, each field of an embedded document is a separate column named by its full path (for example, "address.city").  
    Public PropertyOverridden. Gets a value indicating whether the reader contains one or more rows.  
    Public PropertyOverridden. Gets a value indicating whether the reader is closed.  
    Public PropertyOverloaded. Gets the value of the specified column in its native format given the column name. (Inherited from Devart.Common.DbDataReaderBase)
    Public PropertyOverridden. Gets the number of records affected by the command as a 64-bit value.  
    Public PropertyOverridden. Gets the number of documents inserted, deleted or modified by the command. In the native mode it is the n value of the reply for insert and delete, nModified for update, and 0 for other commands.  
    Public Property (Inherited from System.Data.Common.DbDataReader)
    Top
    Protected Properties
     NameDescription
    Protected Internal Property (Inherited from Devart.Common.DbDataReaderBase)
    Protected PropertyOverridden. Gets a value indicating whether the reader is positioned on a row.  
    Top
    Public Methods
     NameDescription
    Public MethodOverridden. Closes the reader. With System.Data.CommandBehavior.CloseConnection the connection is closed as well.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Releases the unmanaged resources used by the reader and, optionally, the managed resources.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a Boolean.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a byte.  
    Public MethodOverloaded. Reads a stream of bytes from the specified column offset into the buffer as an array starting at the given buffer offset. (Inherited from Devart.Common.DbDataReaderBase)
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a character.  
    Public MethodOverloaded. Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset. (Inherited from Devart.Common.DbDataReaderBase)
    Public MethodOverloaded. Overridden. Returns the name of the data type of the specified column; in the native mode, the name of the MongoDBType value.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a DateTime of the kind set by the DateTime Kind connection option.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a DateTimeOffset. A date without an offset gets the offset of the DateTime Kind connection option. Throws System.InvalidCastException if the value is a null reference (Nothing in Visual Basic).  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a Decimal.  
    Public MethodReturns the current document as a MongoDBDocument when the command is executed with ReaderType=Document; otherwise returns a null reference (Nothing in Visual Basic). In the SQL engine mode throws System.NotSupportedException.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a double-precision floating-point number.  
    Public MethodOverloaded. Overridden. Returns the .NET type of the specified column. A Decimal128 column has the type set by the Decimal128 Mapping connection option (with ReaderType=Default).  
    Public MethodReturns the value of the specified column as the specified type.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a single-precision floating-point number.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a Guid. In the native mode the value can be a UUID or Binary field or a string.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a 16-bit signed integer.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a 32-bit signed integer.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a 64-bit signed integer.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverridden. Returns the name of the specified column; in the native mode, the full path of the field.  
    Public MethodOverridden. Returns the ordinal of the column with the specified name.  
    Public MethodReturns the provider-specific field type of the specified column. (Inherited from Devart.Common.DbDataReaderBase)
    Public MethodGets the value of the specified column as an instance of System.Object (Inherited from Devart.Common.DbDataReaderBase)
    Public MethodOverridden. Returns a DataTable that describes the columns of the reader. In the native mode the "_id" column is marked as the key.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column as a string.  
    Public MethodOverloaded. Overridden. Returns the value of the specified column, or DBNull.Value for a missing or a null reference (Nothing in Visual Basic) field. In the native mode an Int32 value of an Int64 or Double column is returned as the column type, and a date of a DateTimeOffset column as DateTimeOffset.  
    Public MethodGets all attribute columns in the collection for the current row. (Inherited from Devart.Common.DbDataReaderBase)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Returns a value indicating whether the specified column contains a a null reference (Nothing in Visual Basic) or missing value.  
    Public MethodOverridden. Advances the reader to the next result set. In the native mode always returns false.  
    Public MethodOverridden. Advances the reader to the next row. Returns false when there are no more rows, and always false with System.Data.CommandBehavior.SchemaOnly in the native mode.  
    Top
    See Also