C# Class FdoToolbox.Core.Feature.FdoConnection

FDO Connection wrapper class
Inheritance: IDisposable
Datei anzeigen Open project: jumpinjackie/fdotoolbox Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Close() public method

Closes the underlying connection
public Close ( ) : void
return void

CreateFeatureService() public method

Creates a new feature service bound to this connection
public CreateFeatureService ( ) : FdoFeatureService
return FdoFeatureService

CreateSchemaMapping() public method

Creates a blank physical schema mapping
public CreateSchemaMapping ( ) : PhysicalSchemaMapping
return PhysicalSchemaMapping

Dispose() public method

Disposes this connection
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

FdoConnection() public method

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

FdoConnection() public method

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.
return System

Flush() public method

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

GetConnectTimeProperty() public method

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

LoadFromFile() public static method

Creates an FDO connection from file
public static LoadFromFile ( string file ) : FdoConnection
file string
return FdoConnection

LoadFromFile() public static method

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
return FdoConnection

Open() public method

Opens the underlying connection
public Open ( ) : FdoConnectionState
return FdoConnectionState

Refresh() public method

Refreshes this connection
public Refresh ( ) : void
return void

Save() public method

Saves this connection to a file
public Save ( string file ) : void
file string
return void

SaveConfiguration() public method

public SaveConfiguration ( string file ) : void
file string
return void

SetConfiguration() public method

Sets the configuration for this connection
public SetConfiguration ( string file ) : void
file string The configuration file
return void