C# Класс FdoToolbox.Core.Feature.FdoConnection

FDO Connection wrapper class
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Close ( ) : void

Closes the underlying connection

CreateFeatureService ( ) : FdoFeatureService

Creates a new feature service bound to this connection

CreateSchemaMapping ( ) : PhysicalSchemaMapping

Creates a blank physical schema mapping

Dispose ( ) : void

Disposes this connection

FdoConnection ( string provider ) : System

Initializes a new instance of the FdoConnection class.

FdoConnection ( string provider, string connectionString ) : System

Initializes a new instance of the FdoConnection class.

Flush ( ) : void

Forces the writes of any cached data to the targed datastore

GetConnectTimeProperty ( string name ) : DictionaryProperty

Gets the connect time property.

LoadFromFile ( string file ) : FdoConnection

Creates an FDO connection from file

LoadFromFile ( string file, bool tryLoadConfiguration ) : FdoConnection

Creates an FDO connection from file

Open ( ) : FdoConnectionState

Opens the underlying connection

Refresh ( ) : void

Refreshes this connection

Save ( string file ) : void

Saves this connection to a file

SaveConfiguration ( string file ) : void
SetConfiguration ( string file ) : void

Sets the configuration for this connection

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Описание методов

Close() публичный Метод

Closes the underlying connection
public Close ( ) : void
Результат void

CreateFeatureService() публичный Метод

Creates a new feature service bound to this connection
public CreateFeatureService ( ) : FdoFeatureService
Результат FdoFeatureService

CreateSchemaMapping() публичный Метод

Creates a blank physical schema mapping
public CreateSchemaMapping ( ) : PhysicalSchemaMapping
Результат PhysicalSchemaMapping

Dispose() публичный Метод

Disposes this connection
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

FdoConnection() публичный Метод

Initializes a new instance of the FdoConnection class.
public FdoConnection ( string provider ) : System
provider string The provider name.
Результат System

FdoConnection() публичный Метод

Initializes a new instance of the FdoConnection class.
public FdoConnection ( string provider, string connectionString ) : System
provider string The provider name.
connectionString string The connection string.
Результат System

Flush() публичный Метод

Forces the writes of any cached data to the targed datastore
public Flush ( ) : void
Результат void

GetConnectTimeProperty() публичный Метод

Gets the connect time property.
public GetConnectTimeProperty ( string name ) : DictionaryProperty
name string The name.
Результат FdoToolbox.Core.Connections.DictionaryProperty

LoadFromFile() публичный статический Метод

Creates an FDO connection from file
public static LoadFromFile ( string file ) : FdoConnection
file string
Результат FdoConnection

LoadFromFile() публичный статический Метод

Creates an FDO connection from file
public static LoadFromFile ( string file, bool tryLoadConfiguration ) : FdoConnection
file string
tryLoadConfiguration bool If true will attempt to load the configuration for this connection. The configuration file is assumed to be the same name as the connection file, except it has a _Configuration suffix and has a .xml extension
Результат FdoConnection

Open() публичный Метод

Opens the underlying connection
public Open ( ) : FdoConnectionState
Результат FdoConnectionState

Refresh() публичный Метод

Refreshes this connection
public Refresh ( ) : void
Результат void

Save() публичный Метод

Saves this connection to a file
public Save ( string file ) : void
file string
Результат void

SaveConfiguration() публичный Метод

public SaveConfiguration ( string file ) : void
file string
Результат void

SetConfiguration() публичный Метод

Sets the configuration for this connection
public SetConfiguration ( string file ) : void
file string The configuration file
Результат void