开发者

C# - No Intellisense for SqlMethods (Linq/EntityFramework)

开发者 https://www.devze.com 2023-02-04 11:38 出处:网络
I\'ve seen numerous examples for SqlMethods.Like and want to try it, but I can\'t get intellisense to recogniz开发者_运维技巧e it.What do I need to reference or what \"usings\" statements to do I need

I've seen numerous examples for SqlMethods.Like and want to try it, but I can't get intellisense to recogniz开发者_运维技巧e it. What do I need to reference or what "usings" statements to do I need to add.


I figured it out:

Add Reference System.Data.Linq, add code:

using System.Data.Linq.SqlClient


See you've already answered this but for future reference in visual studio if you cursor over the code and press ctrl+. visual studio will recommend you a namespace to use.

Hope this helps you in the future.

0

精彩评论

暂无评论...
验证码 换一张
取 消