Interface INeosSchema
Provides the functionalities of a schema.
public interface INeosSchema
Properties
CheckConstraints
Gets check constraints.
List<INeosCheckConstraint> CheckConstraints { get; }
Property Value
ClusterVersion
Gets or sets the cluster version the schema was generated with.
string? ClusterVersion { get; set; }
Property Value
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
NeosVersion
Gets or sets the Neos framework version the schema was generated with.
string? NeosVersion { get; set; }
Property Value
PrimaryKeys
Gets the primary keys.
List<INeosPrimaryKey> PrimaryKeys { get; }
Property Value
SchemaName
Gets or sets the schema name.
string SchemaName { get; set; }
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.
WithCheckConstraint(INeosCheckConstraint)
Adds a check constraint.
INeosSchema WithCheckConstraint(INeosCheckConstraint checkConstraint)
Parameters
checkConstraintINeosCheckConstraintThe check constraint.
Returns
- INeosSchema
A NeosSchema.
WithColumn(INeosColumn)
Adds a neos column.
INeosSchema WithColumn(INeosColumn neosColumn)
Parameters
neosColumnINeosColumnThe 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
tableNamestringThe table name.
namestringThe name.
typeColumnTypeThe type.
nullableboolIf true, nullable.
Returns
- INeosSchema
A NeosSchema.
WithForeignKey(INeosForeignKey)
Adds a foreign key.
INeosSchema WithForeignKey(INeosForeignKey neosForeignKey)
Parameters
neosForeignKeyINeosForeignKeyThe neos foreign key.
Returns
- INeosSchema
A NeosSchema.
WithIndex(INeosIndex)
Adds an index.
INeosSchema WithIndex(INeosIndex neosIndex)
Parameters
neosIndexINeosIndexThe neos index.
Returns
- INeosSchema
A NeosSchema.
WithLowerCasing()
Changes the case of all names in the schema to lower case.
INeosSchema WithLowerCasing()
Returns
- INeosSchema
A NeosSchema.
WithPrimaryKey(INeosPrimaryKey)
Adds a primary key.
INeosSchema WithPrimaryKey(INeosPrimaryKey neosPrimaryKey)
Parameters
neosPrimaryKeyINeosPrimaryKeyThe neos primary key.
Returns
- INeosSchema
A NeosSchema.
WithTable(INeosTable)
Adds a neos table.
INeosSchema WithTable(INeosTable neosTable)
Parameters
neosTableINeosTableThe neos table.
Returns
- INeosSchema
A NeosSchema.
WithTable(string)
Adds a neos table.
INeosSchema WithTable(string tableName)
Parameters
tableNamestringThe neos table name.
Returns
- INeosSchema
A NeosSchema.
WithUpperCasing()
Changes the case of all names in the schema to upper case.
INeosSchema WithUpperCasing()
Returns
- INeosSchema
A NeosSchema.