3
我正在重构当前在存储过程中使用LinqToSql实现的一些代码(供在培训中使用)。是否有可能在linqToSql查询中使用SQL函数?是否可以在LinqToSql中使用Soundex(或其他SQL函数)?
我正在重构当前在存储过程中使用LinqToSql实现的一些代码(供在培训中使用)。是否有可能在linqToSql查询中使用SQL函数?是否可以在LinqToSql中使用Soundex(或其他SQL函数)?
以下是来自MSDN论坛帖子的一些有用信息。 Soundex and LINQ。
我还没有尝试过,但下面的方法originally posted here似乎是最好的解决方案。
[Function(Name="SoundEx", IsComposable = true)]
public string SoundsLike(string input)
{
throw new NotImplementedException();
}