/// <summary> /// Gets a formatted element name /// </summary> public static string GetElementName(TSqlObject modelElement, SqlRuleExecutionContext ruleExecutionContext, ElementNameStyle style) { // Get the element name using the built in DisplayServices. This provides a number of useful formatting options to // make a name user-readable var displayServices = ruleExecutionContext.SchemaModel.DisplayServices; string elementName = displayServices.GetElementName(modelElement, style); return elementName; }
/// <summary> /// Gets a formatted element name /// </summary> public static string GetElementName(TSqlObject modelElement, SqlRuleExecutionContext ruleExecutionContext, ElementNameStyle style) { // Get the element name using the built in DisplayServices. This provides a number of useful formatting options to // make a name user-readable var displayServices = ruleExecutionContext.SchemaModel.DisplayServices; string elementName = displayServices.GetElementName(modelElement, style); return(elementName); }