DynamicQueryEngine/SpannerSpecificCreator.cs
/// <summary>
/// Routine which creates a valid identifier string for the plain identifier string passed in and appends the fragments to the queryfragments specified. 
/// For example, the identifier will be surrounded by "[]" on sqlserver. If the specified rawIdentifier needs wrapping with e.g. [], the [ and ] characters are
/// added as separate fragments to toAppendTo so no string concatenation has to take place. Use this method over CreateValidAlias if possible.
/// </summary>
/// <param name="toAppendTo">the fragments container to append the fragments to.</param>
/// <param name="rawIdentifier">the plain identifier string to make valid</param>
Routine which creates a valid identifier string for the plain identifier string passed in and appends the fragments to the queryfragments specified.
For example, the identifier will be surrounded by "[]" on sqlserver. If the specified rawIdentifier needs wrapping with e.g. [], the [ and ] characters are
added as separate fragments to toAppendTo so no string concatenation has to take place. Use this method over CreateValidAlias if possible.
Routine which creates a valid identifier string for the plain identifier string passed in and appends the fragments to the queryfragments specified . For example the identifier will be surrounded by " [] " on sqlserver . If the specified rawIdentifier needs wrapping with e . g . [] the [ and ] characters are added as separate fragments to toAppendTo so no string concatenation has to take place . Use this method over CreateValidAlias if possible .
public override void AppendValidIdentifier(QueryFragments toAppendTo, string rawIdentifier)
		{
			if(string.IsNullOrEmpty(rawIdentifier))
			{
				return;
			}
			if(rawIdentifier[0] == '`')
			{
				toAppendTo.AddFragment(rawIdentifier);
			}
			else
			{
				toAppendTo.AddStringFragmentsAsSingleUnit("`", rawIdentifier, "`");
			}
		}
public override void AppendValidIdentifier ( QueryFragments toAppendTo , string rawIdentifier ) { if ( string . IsNullOrEmpty ( rawIdentifier ) ) { return ; } if ( rawIdentifier [ 0 ] == ' ' ) { toAppendTo . AddFragment ( rawIdentifier ) ; } else { toAppendTo . AddStringFragmentsAsSingleUnit ( " " , rawIdentifier , " " ) ; } }
Routine which creates a valid identifier string for the plain identifier string passed in and appends the fragments to the queryfragments specified.
Routine which creates a valid identifier string for the plain identifier string passed in and appends the fragments to the queryfragments specified .
toAppendTo
QueryFragments
the fragments container to append the fragments to.
the fragments container to append the fragments to .
rawIdentifier
string
the plain identifier string to make valid
the plain identifier string to make valid