Class MongoDbRepositorySettings<T>
Inheritance
System.Object
MongoDbRepositorySettings<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: TcOpen.Inxton.MongoDb.dll
Syntax
public class MongoDbRepositorySettings<T> : RepositorySettings where T : IBrowsableDataObject
Type Parameters
Constructors
|
Improve this Doc
View Source
MongoDbRepositorySettings(String, String, String)
Declaration
public MongoDbRepositorySettings(string connectionString, string databaseName, string collectionName)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
Database connection string
|
System.String |
databaseName |
Database name
|
System.String |
collectionName |
Collection name
|
|
Improve this Doc
View Source
MongoDbRepositorySettings(String, String, String, MongoDbCredentials)
Declaration
public MongoDbRepositorySettings(string connectionString, string databaseName, string collectionName, MongoDbCredentials credentials)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
Database connection string
|
System.String |
databaseName |
Database name
|
System.String |
collectionName |
Collection name
|
MongoDbCredentials |
credentials |
Credentials
|
Fields
|
Improve this Doc
View Source
_collectionName
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
_databaseName
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Clients
Declaration
static Dictionary<string, IMongoClient> Clients
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, MongoDB.Driver.IMongoClient> |
|
|
Improve this Doc
View Source
Collections
Declaration
static Dictionary<string, IMongoCollection<T>> Collections
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, MongoDB.Driver.IMongoCollection<T>> |
|
|
Improve this Doc
View Source
Databases
Declaration
static Dictionary<string, IMongoDatabase> Databases
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, MongoDB.Driver.IMongoDatabase> |
|
Properties
|
Improve this Doc
View Source
Client
Declaration
public IMongoClient Client { get; }
Property Value
Type |
Description |
MongoDB.Driver.IMongoClient |
|
|
Improve this Doc
View Source
Collection
Declaration
public IMongoCollection<T> Collection { get; }
Property Value
Type |
Description |
MongoDB.Driver.IMongoCollection<T> |
|
|
Improve this Doc
View Source
Database
Declaration
public IMongoDatabase Database { get; }
Property Value
Type |
Description |
MongoDB.Driver.IMongoDatabase |
|
Methods
|
Improve this Doc
View Source
GetClient(String)
Declaration
IMongoClient GetClient(string connectionString)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
|
Returns
Type |
Description |
MongoDB.Driver.IMongoClient |
|
|
Improve this Doc
View Source
GetClient(String, MongoDbCredentials)
Declaration
IMongoClient GetClient(string connectionString, MongoDbCredentials dbCredentials)
Parameters
Returns
Type |
Description |
MongoDB.Driver.IMongoClient |
|
|
Improve this Doc
View Source
GetCollection(String)
Declaration
IMongoCollection<T> GetCollection(string collectionName)
Parameters
Type |
Name |
Description |
System.String |
collectionName |
|
Returns
Type |
Description |
MongoDB.Driver.IMongoCollection<T> |
|
|
Improve this Doc
View Source
GetConnectionInfo()
Declaration
public string GetConnectionInfo()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetContainingTypes(Type, List<Type>)
Declaration
static IEnumerable<Type> GetContainingTypes(Type RootType, List<Type> types = null)
Parameters
Type |
Name |
Description |
System.Type |
RootType |
|
System.Collections.Generic.List<System.Type> |
types |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
|
Improve this Doc
View Source
GetDatabase(String)
Declaration
IMongoDatabase GetDatabase(string databaseName)
Parameters
Type |
Name |
Description |
System.String |
databaseName |
|
Returns
Type |
Description |
MongoDB.Driver.IMongoDatabase |
|
|
Improve this Doc
View Source
IsPortOpen(String, Int32, TimeSpan)
Declaration
bool IsPortOpen(string host, int port, TimeSpan timeout)
Parameters
Type |
Name |
Description |
System.String |
host |
|
System.Int32 |
port |
|
System.TimeSpan |
timeout |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetupSerialisationAndMapping()
Declaration
static void SetupSerialisationAndMapping()
|
Improve this Doc
View Source
Declaration
public void WaitForMongoServerAvailability()