public override string GetSpecialDbType(SpecialDbType dbTypes) { // SqlCE does not have nvarchar(max) for now if (dbTypes == SpecialDbType.NVARCHARMAX) { return("NTEXT"); } return(base.GetSpecialDbType(dbTypes)); }
public virtual string GetSpecialDbType(SpecialDbType dbType) { if (dbType == SpecialDbType.NCHAR) { return(SpecialDbType.NCHAR); } else if (dbType == SpecialDbType.NTEXT) { return(SpecialDbType.NTEXT); } else if (dbType == SpecialDbType.NVARCHARMAX) { return("NVARCHAR(MAX)"); } return("NVARCHAR"); }
public virtual string GetSpecialDbType(SpecialDbType dbType, int customSize) => $"{GetSpecialDbType(dbType)}({customSize})";
/// <inheritdoc /> public override string GetSpecialDbType(SpecialDbType dbType, int customSize) => GetSpecialDbType(dbType);
/// <inheritdoc /> public override string GetSpecialDbType(SpecialDbType dbType) => "TEXT COLLATE NOCASE";