MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.db.image.EntitiesConnection Class Reference

The EntitiesConnection class defines how to connect to the database via Entity Frameworks. More...

Inheritance diagram for MyCaffe.db.image.EntitiesConnection:
MyCaffe.db.temporal.EntitiesConnectionTemporal

Public Member Functions

 EntitiesConnection ()
 The EntitiesConnection constructor. More...
 

Static Public Member Functions

static string CreateConnectionString (string strDb)
 Creates the connection string used. More...
 
static string CreateConnectionString (ConnectInfo ci)
 Creates the connection string used. More...
 
static DNNEntities CreateEntities (ConnectInfo ci=null)
 Returns the DNNEntities to use. More...
 

Static Protected Attributes

static ConnectInfo g_connectInfo = new ConnectInfo(".", "DNN")
 Specifies the default database connection info. More...
 

Properties

static ConnectInfo GlobalDatabaseConnectInfo [getset]
 Get/set the global database connection info. More...
 

Detailed Description

The EntitiesConnection class defines how to connect to the database via Entity Frameworks.

Definition at line 50 of file EntitiesConnection.cs.

Constructor & Destructor Documentation

◆ EntitiesConnection()

MyCaffe.db.image.EntitiesConnection.EntitiesConnection ( )

The EntitiesConnection constructor.

Definition at line 62 of file EntitiesConnection.cs.

Member Function Documentation

◆ CreateConnectionString() [1/2]

static string MyCaffe.db.image.EntitiesConnection.CreateConnectionString ( ConnectInfo  ci)
static

Creates the connection string used.

Parameters
ciSpecifies the database connection info (default = 'DNN' db and '.' server).
Returns
The connection string is returned.

Definition at line 91 of file EntitiesConnection.cs.

◆ CreateConnectionString() [2/2]

static string MyCaffe.db.image.EntitiesConnection.CreateConnectionString ( string  strDb)
static

Creates the connection string used.

Parameters
strDbSpecifies the database to use (default = 'DNN').
Returns
The connection string is returned.

Note, this uses the server specified in the GlobalDatabaseConnectionInfo.

Definition at line 81 of file EntitiesConnection.cs.

◆ CreateEntities()

static DNNEntities MyCaffe.db.image.EntitiesConnection.CreateEntities ( ConnectInfo  ci = null)
static

Returns the DNNEntities to use.

Parameters
ciOptionally, specifies the database connection info (default = null, which defaults to 'DNN' db and '.' server).
Returns

Definition at line 162 of file EntitiesConnection.cs.

Member Data Documentation

◆ g_connectInfo

ConnectInfo MyCaffe.db.image.EntitiesConnection.g_connectInfo = new ConnectInfo(".", "DNN")
staticprotected

Specifies the default database connection info.

Definition at line 55 of file EntitiesConnection.cs.

Property Documentation

◆ GlobalDatabaseConnectInfo

ConnectInfo MyCaffe.db.image.EntitiesConnection.GlobalDatabaseConnectInfo
staticgetset

Get/set the global database connection info.

Definition at line 69 of file EntitiesConnection.cs.


The documentation for this class was generated from the following file: