Interface INeosSchema
Provides the functionalities of a schema.
public interface INeosSchema
Properties
Columns
Gets columns.
List<INeosColumn> Columns { get; }
Property Value
ExcludedTableNames
Gets excluded table names.
List<string> ExcludedTableNames { get; }
Property Value
ForeignKeys
Gets foreign keys.
List<INeosForeignKey> ForeignKeys { get; }
Property Value
Indexes
Gets indexes.
List<INeosIndex> Indexes { get; }
Property Value
PrimaryKeys
Gets the primary keys.
List<INeosPrimaryKey> PrimaryKeys { get; }
Property Value
SchemaVersion
Gets or sets the schema version.
string? SchemaVersion { get; set; }
Property Value
Tables
Gets tables.
List<INeosTable> Tables { get; }
Property Value
Views
Gets views.
List<INeosView> Views { get; }
Property Value
Methods
Clone()
Clones the schema.
INeosSchema Clone()
Returns
- INeosSchema
The cloned schema.
WithColumn(INeosColumn)
Adds a neos column.
INeosSchema WithColumn(INeosColumn neosColumn)
Parameters
neosColumn
INeosColumnThe neos column.
Returns
- INeosSchema
A NeosSchema.
WithColumn(string, string, ColumnType, bool)
Adds a neos column.
INeosSchema WithColumn(string tableName, string name, ColumnType type, bool nullable = true)
Parameters
tableName
stringThe table name.
name
stringThe name.
type
ColumnTypeThe type.
nullable
boolIf true, nullable.
Returns
- INeosSchema
A NeosSchema.
WithForeignKey(INeosForeignKey)
Adds a foreign key.
INeosSchema WithForeignKey(INeosForeignKey neosForeignKey)
Parameters
neosForeignKey
INeosForeignKeyThe neos foreign key.
Returns
- INeosSchema
A NeosSchema.
WithIndex(INeosIndex)
Adds an index.
INeosSchema WithIndex(INeosIndex neosIndex)
Parameters
neosIndex
INeosIndexThe neos index.
Returns
- INeosSchema
A NeosSchema.
WithPrimaryKey(INeosPrimaryKey)
Adds a primary key.
INeosSchema WithPrimaryKey(INeosPrimaryKey neosPrimaryKey)
Parameters
neosPrimaryKey
INeosPrimaryKeyThe neos primary key.
Returns
- INeosSchema
A NeosSchema.
WithTable(INeosTable)
Adds a neos table.
INeosSchema WithTable(INeosTable neosTable)
Parameters
neosTable
INeosTableThe neos table.
Returns
- INeosSchema
A NeosSchema.
WithTable(string)
Adds a neos table.
INeosSchema WithTable(string tableName)
Parameters
tableName
stringThe neos table name.
Returns
- INeosSchema
A NeosSchema.