C# - No Intellisense for SqlMethods (Linq/EntityFramework)
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.
精彩评论