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

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

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

Same methods

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

Usage Example

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