Ejemplo n.º 1
0
        public string GetDefault(ISqlDialect dialect)
        {
            if (this.defaultValue != null)
            {
                return(this.defaultValue);
            }

            if (this.IsPrimaryKey || this.Relationship != RelationshipType.None)
            {
                return(null);
            }

            return(dialect.DefaultFor(this.DbType, this.IsNullable));
        }