[]
        
(Showing Draft Content)

C1.DataEngine.Workspace

Workspace Class

Provides access to the ComponentOne DataEngine.

Inheritance
Workspace
Implements
Namespace: C1.DataEngine
Assembly: C1.DataEngine.dll
Syntax
[DataContract]
public sealed class Workspace : IDisposable
Remarks

If several workspaces are used in an application, they are isolated from each other.

Constructors

Name Description
Workspace()

Initializes a new instance of the Workspace class

Properties

Name Description
AutoSave

Enables/disables automatic saving metadata to disk on every metadata change. Default: metadata autosave enabled.

FiscalYearFirstMonth

Gets or sets the number of the first month for the fiscal year.

KeepFiles

Automatic disk cleanup strategy.

Path

Returns the workspace folder path.

ReuseJoins

Determines whether join queries with the same base fields are reused when another similar join is created. Default: true.

Methods

Name Description
BeginUpdate()

Indicates that multiple batches of data are being added to one or more tables, so that data consumers can suspend their update until all data changed are complete.

Clear(ClearFileType)

Deletes data files from disk.

Clear(string, ClearFileType)

Deletes data files of a table from disk.

Dispose()

Clean up any resources being used.

EndUpdate()

Indicates that multiple batches of data changes have been completed.

GetQueryData(string, int)

Gets size and enumerator for all data rows in a query.

GetTableData(string, int)

Gets size and enumerator for all data rows in a table.

GetTableNames()

Returns the names of base tables in a workspace.

Init(string)

Initializes ComponentOne DataEngine.

QueryExists(string)

Determines whether the specified query exists in the workspace.

Save()

Saves workspace metadata to disk.

TableExists(string)

Determines whether the specified base table exists in the workspace.

join(ExpandoObject, object)

Creates a join query.

join(string, ExpandoObject, object)

Creates a join query.

query(object)

Creates a query based on a single table or query (not a join).

query(string, object)

Creates a query based on a single table or query (not a join).

table(string)

Gets a base table by its name.

Events

Name Description
Initialize

Occurs after the workspace has been initialized, its Init(string) method has been called.