C# Class FdoToolbox.Core.Feature.FdoConnection

FDO Connection wrapper class
Inheritance: IDisposable
Afficher le fichier Open project: jumpinjackie/fdotoolbox Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Close() public méthode

Closes the underlying connection
public Close ( ) : void
Résultat void

CreateFeatureService() public méthode

Creates a new feature service bound to this connection
public CreateFeatureService ( ) : FdoFeatureService
Résultat FdoFeatureService

CreateSchemaMapping() public méthode

Creates a blank physical schema mapping
public CreateSchemaMapping ( ) : PhysicalSchemaMapping
Résultat PhysicalSchemaMapping

Dispose() public méthode

Disposes this connection
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

FdoConnection() public méthode

Initializes a new instance of the FdoConnection class.
public FdoConnection ( string provider ) : System
provider string The provider name.
Résultat System

FdoConnection() public méthode

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.
Résultat System

Flush() public méthode

Forces the writes of any cached data to the targed datastore
public Flush ( ) : void
Résultat void

GetConnectTimeProperty() public méthode

Gets the connect time property.
public GetConnectTimeProperty ( string name ) : DictionaryProperty
name string The name.
Résultat FdoToolbox.Core.Connections.DictionaryProperty

LoadFromFile() public static méthode

Creates an FDO connection from file
public static LoadFromFile ( string file ) : FdoConnection
file string
Résultat FdoConnection

LoadFromFile() public static méthode

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
Résultat FdoConnection

Open() public méthode

Opens the underlying connection
public Open ( ) : FdoConnectionState
Résultat FdoConnectionState

Refresh() public méthode

Refreshes this connection
public Refresh ( ) : void
Résultat void

Save() public méthode

Saves this connection to a file
public Save ( string file ) : void
file string
Résultat void

SaveConfiguration() public méthode

public SaveConfiguration ( string file ) : void
file string
Résultat void

SetConfiguration() public méthode

Sets the configuration for this connection
public SetConfiguration ( string file ) : void
file string The configuration file
Résultat void