コード例 #1
0
        public virtual bool IsSimilarTo(MigrationColumn column)
        {
            if (column.GetType() != this.GetType())
            {
                return(false);
            }

            if (column.Name != this.Name)
            {
                return(false);
            }

            if (column.Type != this.Type)
            {
                return(false);
            }

            if (column.IsNullable != this.IsNullable)
            {
                return(false);
            }

            if (column.IsPrimaryKey != this.IsPrimaryKey)
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);

            if (!result)
            {
                return(false);
            }

            var dc = column as DecimalMigrationColumn;

            if (dc == null)
            {
                return(false);
            }

            if (dc.Precision != this.Precision)
            {
                return(false);
            }

            if (dc.Scale != this.Scale)
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
        public virtual bool IsSimilarTo(MigrationColumn column)
        {
            if (column.GetType() != this.GetType())
                return false;

            if (column.Name != this.Name)
                return false;

            if (column.Type != this.Type)
                return false;

            if (column.IsNullable != this.IsNullable)
                return false;

            if (column.IsPrimaryKey != this.IsPrimaryKey)
                return false;

            return true;
        }
コード例 #4
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);

            if (!result)
            {
                return(false);
            }

            var fk = column as ForeignKeyColumn;

            if (fk == null)
            {
                return(false);
            }

            if (fk.ReferencedTableName != this.ReferencedTableName)
            {
                return(false);
            }

            return(true);
        }
コード例 #5
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);

            if (!result)
            {
                return(false);
            }

            var sc = column as StringMigrationColumn;

            if (sc == null)
            {
                return(false);
            }

            if (sc.Length != this.Length)
            {
                return(false);
            }


            return(true);
        }
コード例 #6
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);

            if (!result)
                return false;

            var sc = column as StringMigrationColumn;

            if (sc == null)
                return false;

            if (sc.Length != this.Length)
                return false;


            return true;
        }
コード例 #7
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);

            if (!result)
                return false;

            var dc = column as DecimalMigrationColumn;

            if (dc == null)
                return false;

            if (dc.Precision != this.Precision)
                return false;

            if (dc.Scale != this.Scale)
                return false;

            return true;
        }
コード例 #8
0
        public override bool IsSimilarTo(MigrationColumn column)
        {
            var result = base.IsSimilarTo(column);
            
            if (!result)
                return false;

            var fk = column as ForeignKeyColumn;
            
            if (fk == null)
                return false;

            if (fk.ReferencedTableName != this.ReferencedTableName)
                return false;

            return true;
        }