C# Class Mongo.Context.MongoContext

Inheritance: IDisposable
Exibir arquivo Open project: object/MongOData Class Usage Examples

Protected Properties

Property Type Description
client MongoDB.Driver.MongoClient
connectionString string
database MongoDatabase
server MongoServer

Public Methods

Method Description
Dispose ( ) : void
GetDatabaseNames ( string connectionString ) : IEnumerable
MongoContext ( string connectionString ) : System
SaveChanges ( ) : void

Private Methods

Method Description
GetDatabaseName ( string connectionString ) : string

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetDatabaseNames() public static method

public static GetDatabaseNames ( string connectionString ) : IEnumerable
connectionString string
return IEnumerable

MongoContext() public method

public MongoContext ( string connectionString ) : System
connectionString string
return System

SaveChanges() public method

public SaveChanges ( ) : void
return void

Property Details

client protected_oe property

protected MongoClient,MongoDB.Driver client
return MongoDB.Driver.MongoClient

connectionString protected_oe property

protected string connectionString
return string

database protected_oe property

protected MongoDatabase database
return MongoDatabase

server protected_oe property

protected MongoServer server
return MongoServer