Nettiers.AdventureWorks.Data.SqlUtil.EndsWith C# (CSharp) Метод

EndsWith() публичный статический Метод

Encodes the value for a SqlComparisonType.EndsWith expression.
public static EndsWith ( String value ) : String
value String The value.
Результат String
		public static String EndsWith(String value)
		{
			return String.Format("%{0}", Encode(value));
		}

Same methods

SqlUtil::EndsWith ( String column, String value ) : String
SqlUtil::EndsWith ( String column, String value, bool ignoreCase ) : String
SqlUtil::EndsWith ( String column, String value, bool ignoreCase, bool surround ) : String

Usage Example

 /// <summary>
 /// Creates a <see cref="SqlComparisonType.EndsWith"/> expression.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="value"></param>
 /// <param name="ignoreCase"></param>
 /// <returns></returns>
 protected override string EndsWith(string column, string value, bool ignoreCase)
 {
     value = SqlUtil.EndsWith(value);
     return(SqlUtil.Like(column, Parameters.GetParameter(value), ignoreCase, false));
 }
All Usage Examples Of Nettiers.AdventureWorks.Data.SqlUtil::EndsWith