简体   繁体   中英

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 recognize 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM