Логика создания шаблонов

This commit is contained in:
Mikhail Trubnikov
2023-09-25 11:47:13 +10:00
parent 6c3ac936a1
commit 251d23e9b4
10 changed files with 1601 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
namespace PARR.BLL.Helpers
{
public static class SqlHelpers
{
/// <summary>
/// Преобразует Regex в Like для SQL
/// </summary>
/// <param name="regexPattern"></param>
/// <returns></returns>
public static string RegexToLike(string regexPattern)
{
return regexPattern.Replace("*", "%").ToLower();
}
}
}