C# Class MongoDB.Driver.DBRef

A Wrapper for a reference to another object
Mostrar archivo Open project: sdether/mongodb-csharp Class Usage Examples

Public Methods

Method Description
DBRef ( ) : System
DBRef ( Document doc ) : System

Constructs a DBRef from a document that matches the DBref specification.

DBRef ( string collectionName, object id ) : System
Equals ( object obj ) : bool
FromDocument ( Document doc ) : DBRef

Deprecated. Use the new DBRef(Document) constructor instead.

GetHashCode ( ) : int
IsDocumentDBRef ( Document doc ) : bool
ToString ( ) : string

Method Details

DBRef() public method

public DBRef ( ) : System
return System

DBRef() public method

Constructs a DBRef from a document that matches the DBref specification.
public DBRef ( Document doc ) : System
doc Document
return System

DBRef() public method

public DBRef ( string collectionName, object id ) : System
collectionName string
id object
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromDocument() public static method

Deprecated. Use the new DBRef(Document) constructor instead.
public static FromDocument ( Document doc ) : DBRef
doc Document
return DBRef

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsDocumentDBRef() public static method

public static IsDocumentDBRef ( Document doc ) : bool
doc Document
return bool

ToString() public method

public ToString ( ) : string
return string