DynamicQueryEngine/SpannerSpecificCreator.cs
/// <summary>
/// Creates a valid object name (e.g. a name for a table or view) based on the fragments specified. The name is ready to  use and contains
/// all alias wrappings required. 
/// </summary>
/// <param name="catalogName">Name of the catalog.</param>
/// <param name="schemaName">Name of the schema.</param>
/// <param name="elementName">Name of the element.</param>
/// <returns>valid object name</returns>
Creates a valid object name  based on the fragments specified. The name is ready to  use and contains
all alias wrappings required.
Creates a valid object name based on the fragments specified . The name is ready to use and contains all alias wrappings required .
public override string CreateObjectName(string catalogName, string schemaName, string elementName)
        {
			var key = new LightweightStringFragmentCacheKey(string.Empty, elementName);
			var toReturn = _stringFragmentsCache.GetConcatenatedResult(key);
			if(toReturn == null)
			{
				var fragments = new QueryFragments(String.Empty, 1);
				AppendValidIdentifier(fragments, elementName);
				toReturn = fragments.ToString();
				_stringFragmentsCache.Add(key, toReturn);
			}
			return toReturn;
		}
public override string CreateObjectName ( string catalogName , string schemaName , string elementName ) { var key = new LightweightStringFragmentCacheKey ( string . Empty , elementName ) ; var toReturn = _stringFragmentsCache . GetConcatenatedResult ( key ) ; if ( toReturn == null ) { var fragments = new QueryFragments ( String . Empty , 1 ) ; AppendValidIdentifier ( fragments , elementName ) ; toReturn = fragments . ToString ( ) ; _stringFragmentsCache . Add ( key , toReturn ) ; } return toReturn ; }
Creates a valid object name (e.g.
Creates a valid object name ( e . g .
valid object name
valid object name
catalogName
string
Name of the catalog.
Name of the catalog .
schemaName
string
Name of the schema.
Name of the schema .
elementName
string
Name of the element.
Name of the element .