More SQL optimizations.

Fixes: 26866

[TFS Changeset #65734]
This commit is contained in:
Shandem
2010-04-24 06:14:20 +00:00
parent f57b24e270
commit f2e4350c0a
13 changed files with 238 additions and 125 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace umbraco.DataLayer
{
public static class StringExtensions
{
/// <summary>
/// This trims all white spaces from beginning and end of the string and removes any line breaks (repacing with a space)
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static string TrimToOneLine(this string str)
{
return str.Replace(Environment.NewLine, " ").Trim();
}
}
}