Class MongoDBRef
Represents a DBRef (a convenient way to refer to a document).
[BsonSerializer(typeof(MongoDBRefSerializer))]
public class MongoDBRef : IEquatable<MongoDBRef>
- Inheritance
-
MongoDBRef
- Implements
- Inherited Members
Constructors
- MongoDBRef(string, BsonValue)
Creates a MongoDBRef.
- MongoDBRef(string, string, BsonValue)
Creates a MongoDBRef.
Properties
- CollectionName
Gets the name of the collection that contains the document.
- DatabaseName
Gets the name of the database that contains the document.
- Id
Gets the Id of the document.
Methods
- Equals(MongoDBRef)
Determines whether this instance and another specified MongoDBRef object have the same value.
- Equals(MongoDBRef, MongoDBRef)
Determines whether two specified MongoDBRef objects have the same value.
- Equals(object)
Determines whether this instance and a specified object, which must also be a MongoDBRef object, have the same value.
- GetHashCode()
Returns the hash code for this MongoDBRef object.
- ToString()
Returns a string representation of the value.
Operators
- operator ==(MongoDBRef, MongoDBRef)
Determines whether two specified MongoDBRef objects have the same value.
- operator !=(MongoDBRef, MongoDBRef)
Determines whether two specified MongoDBRef objects have different values.