Search Results for

    Show / Hide Table of Contents

    Class ColumnDefinition

    Inheritance
    object
    ColumnDefinition
    Implements
    ICloneable
    ICanBeValidated
    ISupportAdditionalFeatures
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Model
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public class ColumnDefinition : ICloneable, ICanBeValidated, ISupportAdditionalFeatures

    Constructors

    ColumnDefinition()

    Declaration
    public ColumnDefinition()

    Properties

    AdditionalFeatures

    Declaration
    public IDictionary<string, object> AdditionalFeatures { get; }
    Property Value
    Type Description
    IDictionary<string, object>

    CollationName

    Declaration
    public virtual string CollationName { get; set; }
    Property Value
    Type Description
    string

    ColumnDescription

    Declaration
    public virtual string ColumnDescription { get; set; }
    Property Value
    Type Description
    string

    CustomType

    Declaration
    public virtual string CustomType { get; set; }
    Property Value
    Type Description
    string

    DefaultValue

    Declaration
    public virtual object DefaultValue { get; set; }
    Property Value
    Type Description
    object

    ForeignKey

    Gets or sets the foreign key definition

    Declaration
    public virtual ForeignKeyDefinition ForeignKey { get; set; }
    Property Value
    Type Description
    ForeignKeyDefinition
    Remarks

    A column might be marked as IsForeignKey, but ForeignKey might still be null. This happens when ForeignKey() without arguments gets called on a column.

    IsForeignKey

    Declaration
    public virtual bool IsForeignKey { get; set; }
    Property Value
    Type Description
    bool

    IsIdentity

    Declaration
    public virtual bool IsIdentity { get; set; }
    Property Value
    Type Description
    bool

    IsIndexed

    Declaration
    public virtual bool IsIndexed { get; set; }
    Property Value
    Type Description
    bool

    IsNullable

    Declaration
    public virtual bool? IsNullable { get; set; }
    Property Value
    Type Description
    bool?

    IsPrimaryKey

    Declaration
    public virtual bool IsPrimaryKey { get; set; }
    Property Value
    Type Description
    bool

    IsUnique

    Declaration
    public virtual bool IsUnique { get; set; }
    Property Value
    Type Description
    bool

    ModificationType

    Declaration
    public virtual ColumnModificationType ModificationType { get; set; }
    Property Value
    Type Description
    ColumnModificationType

    Name

    Declaration
    public virtual string Name { get; set; }
    Property Value
    Type Description
    string

    Precision

    Declaration
    public virtual int Precision { get; set; }
    Property Value
    Type Description
    int

    PrimaryKeyName

    Declaration
    public virtual string PrimaryKeyName { get; set; }
    Property Value
    Type Description
    string

    Size

    Declaration
    public virtual int Size { get; set; }
    Property Value
    Type Description
    int

    TableName

    Declaration
    public virtual string TableName { get; set; }
    Property Value
    Type Description
    string

    Type

    Declaration
    public virtual DbType? Type { get; set; }
    Property Value
    Type Description
    DbType?

    Methods

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    object

    A new object that is a copy of this instance.

    CollectValidationErrors(ICollection<string>)

    Declaration
    public virtual void CollectValidationErrors(ICollection<string> errors)
    Parameters
    Type Name Description
    ICollection<string> errors

    Implements

    ICloneable
    ICanBeValidated
    ISupportAdditionalFeatures

    Extension Methods

    AdditionalFeaturesExtensions.GetAdditionalFeature<T>(ISupportAdditionalFeatures, string, Func<T>)
    AdditionalFeaturesExtensions.GetAdditionalFeature<T>(ISupportAdditionalFeatures, string, T)
    AdditionalFeaturesExtensions.SetAdditionalFeature<T>(ISupportAdditionalFeatures, string, T)
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.