C# Class Core2D.Data.Database.XDatabase

Records database.
Inheritance: ObservableObject
显示文件 Open project: Core2D/Core2D Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Create ( string name, ImmutableArray columns, ImmutableArray records, string idColumnName = DefaultIdColumnName ) : XDatabase

Creates a new XDatabase instance.

Create ( string name, ImmutableArray columns, string idColumnName = DefaultIdColumnName ) : XDatabase

Creates a new XDatabase instance.

Create ( string name, string idColumnName = DefaultIdColumnName ) : XDatabase

Creates a new XDatabase instance.

FromFields ( string name, IEnumerable fields, string idColumnName = DefaultIdColumnName ) : XDatabase

Creates a new XDatabase instance.

Update ( XDatabase destination, XDatabase source, ImmutableArray &records ) : bool

Update the destination database using data from source database using Id column as identification.

XDatabase ( ) : System.Collections.Generic

Initializes a new instance of the XDatabase class.

Method Details

Create() public static method

Creates a new XDatabase instance.
public static Create ( string name, ImmutableArray columns, ImmutableArray records, string idColumnName = DefaultIdColumnName ) : XDatabase
name string The database name.
columns ImmutableArray The database columns.
records ImmutableArray The database records.
idColumnName string The Id column name.
return XDatabase

Create() public static method

Creates a new XDatabase instance.
public static Create ( string name, ImmutableArray columns, string idColumnName = DefaultIdColumnName ) : XDatabase
name string The database name.
columns ImmutableArray The database columns.
idColumnName string The Id column name.
return XDatabase

Create() public static method

Creates a new XDatabase instance.
public static Create ( string name, string idColumnName = DefaultIdColumnName ) : XDatabase
name string The database name.
idColumnName string The Id column name.
return XDatabase

FromFields() public static method

Creates a new XDatabase instance.
public static FromFields ( string name, IEnumerable fields, string idColumnName = DefaultIdColumnName ) : XDatabase
name string The database name.
fields IEnumerable The fields collection.
idColumnName string The Id column name.
return XDatabase

Update() public static method

Update the destination database using data from source database using Id column as identification.
public static Update ( XDatabase destination, XDatabase source, ImmutableArray &records ) : bool
destination XDatabase The destination database.
source XDatabase The source database.
records ImmutableArray The updated records from destination database.
return bool

XDatabase() public method

Initializes a new instance of the XDatabase class.
public XDatabase ( ) : System.Collections.Generic
return System.Collections.Generic