Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法为没有翻译的表达提供翻译?
像 double.parse()
一种选择(至少使用 LINQ-to-SQL)是将缺少的功能编写为UDF并将其添加到数据上下文中;然后你可以ctx.MyMethod(cust.SomeValue)在你的 LINQ 查询中使用 etc 。请注意,如果您希望它为表中的每一行运行它,这可能会影响性能。本质上,您的 TSQL 将涉及user.MyUdf(table.SomeValue)等。
ctx.MyMethod(cust.SomeValue)
user.MyUdf(table.SomeValue)