src/Shared/EntityFramework.SqlServerCompact/CommonUtils.cs
// <summary>
// Routine to replace an interesting character with itself
// (to escape the interesting character)
// </summary>
Routine to replace an interesting character with itself
(to escape the interesting character)
Routine to replace an interesting character with itself ( to escape the interesting character )
public static string EscapeNames(string name, char quote)
        {
            string outputName;
            var sb = new StringBuilder();
            sb.Append(quote.ToString());
            sb.Append(quote.ToString());
            outputName = name.Replace(quote.ToString(), sb.ToString());
            return outputName;
        }
public static string EscapeNames ( string name , char quote ) { string outputName ; var sb = new StringBuilder ( ) ; sb . Append ( quote . ToString ( ) ) ; sb . Append ( quote . ToString ( ) ) ; outputName = name . Replace ( quote . ToString ( ) , sb . ToString ( ) ) ; return outputName ; }
Routine to replace an interesting character with itself
(to escape the interesting character)
Routine to replace an interesting character with itself ( to escape the interesting character )
name
string
quote
char