/// <summary> /// Returns a <see cref="System.String"/> that represents this instance. /// </summary> /// <param name="sqlDialect">The SQL dialect.</param> /// <returns> /// A <see cref="System.String"/> that represents this instance. /// </returns> public virtual string ToString(Providers.SqlDialect sqlDialect) { var txt = sqlDialect.TranslateToSqlStringType(this); return(txt); }
/// <summary> /// Gets the CLR type as string. /// </summary> /// <param name="dialect"></param> /// <param name="entity">The entity.</param> /// <returns></returns> public override string GetClrTypeAsString(Providers.SqlDialect dialect, EntityMap entity) { return(IsPrimaryKey ? base.GetClrTypeAsString(dialect, entity) : ReferenceEntityName); }