Class DefaultSchemaConvention
The class handling the default schema name
Inherited Members
Namespace: FluentMigrator.Runner.Conventions
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public sealed class DefaultSchemaConvention : IForeignKeyConvention, IConstraintConvention, IIndexConvention, ISequenceConvention
  Remarks
This class handles all ISchemaExpression and additionally implements other conventions that give access to schema names (e.g. IForeignKeyConvention).
Constructors
DefaultSchemaConvention()
Initializes a new instance of the DefaultSchemaConvention class.
Declaration
public DefaultSchemaConvention()
  DefaultSchemaConvention(IDefaultSchemaNameConvention)
Initializes a new instance of the DefaultSchemaConvention class.
Declaration
public DefaultSchemaConvention(IDefaultSchemaNameConvention defaultSchemaNameConvention)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDefaultSchemaNameConvention | defaultSchemaNameConvention | The convention used to return the default schema name for a given original schema name.  | 
      
DefaultSchemaConvention(string)
Initializes a new instance of the DefaultSchemaConvention class.
Declaration
public DefaultSchemaConvention(string defaultSchemaName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | defaultSchemaName | The default schema name  | 
      
Methods
Apply(IConstraintExpression)
Applies a convention to a IConstraintExpression
Declaration
public IConstraintExpression Apply(IConstraintExpression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IConstraintExpression | expression | The expression this convention should be applied to  | 
      
Returns
| Type | Description | 
|---|---|
| IConstraintExpression | The same or a new expression. The underlying type must stay the same.  | 
      
Apply(IForeignKeyExpression)
Applies a convention to a IForeignKeyExpression
Declaration
public IForeignKeyExpression Apply(IForeignKeyExpression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IForeignKeyExpression | expression | The expression this convention should be applied to  | 
      
Returns
| Type | Description | 
|---|---|
| IForeignKeyExpression | The same or a new expression. The underlying type must stay the same.  | 
      
Apply(IIndexExpression)
Applies a convention to a IIndexExpression
Declaration
public IIndexExpression Apply(IIndexExpression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IIndexExpression | expression | The expression this convention should be applied to  | 
      
Returns
| Type | Description | 
|---|---|
| IIndexExpression | The same or a new expression. The underlying type must stay the same.  | 
      
Apply(ISchemaExpression)
Applies a convention to a ISchemaExpression
Declaration
public ISchemaExpression Apply(ISchemaExpression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISchemaExpression | expression | The expression this convention should be applied to  | 
      
Returns
| Type | Description | 
|---|---|
| ISchemaExpression | The same or a new expression. The underlying type must stay the same.  | 
      
Apply(ISequenceExpression)
Applies a convention to a ISequenceExpression
Declaration
public ISequenceExpression Apply(ISequenceExpression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISequenceExpression | expression | The expression this convention should be applied to  | 
      
Returns
| Type | Description | 
|---|---|
| ISequenceExpression | The same or a new expression. The underlying type must stay the same.  |