SqlParser.cs
/// <summary>
/// Map Client Side Params to SQL Column Names
/// </summary>
/// <returns>returns acutal column name </returns>
Map Client Side Params to SQL Column Names
Map Client Side Params to SQL Column Names
public string GetSQLColumnName(string colName)
		{
			var actualColName = string.Empty;
			if (!string.IsNullOrWhiteSpace(colName))
			{
				if (this.sqlColumnsMap.ToDictionary().ContainsKey(colName.ToLower()))
				{
					this.sqlColumnsMap.ToDictionary().TryGetValue(colName.ToLower(), out actualColName);
				}
				else
				{
					actualColName = colName;
				}
			}
			else
			{
				actualColName = string.Empty;
			}
			return actualColName;
		}
public string GetSQLColumnName ( string colName ) { var actualColName = string . Empty ; if ( ! string . IsNullOrWhiteSpace ( colName ) ) { if ( this . sqlColumnsMap . ToDictionary ( ) . ContainsKey ( colName . ToLower ( ) ) ) { this . sqlColumnsMap . ToDictionary ( ) . TryGetValue ( colName . ToLower ( ) , out actualColName ) ; } else { actualColName = colName ; } } else { actualColName = string . Empty ; } return actualColName ; }
Map Client Side Params to SQL Column Names
Map Client Side Params to SQL Column Names
returns acutal column name
returns acutal column name
colName
string