SQL Server: Access Fulltext Index via LINQ -


Is there a way to direct instructions (LINE) to run a full text index query? LINQ is currently preparing any text search query for me, just ends with LIKE operator Do I need to create a stored procedure for this?

One example would be great! Thanks!

Since LINQ is a general purpose query abstract layer, you can not directly server through specific LINQ Implementation You may be able to do this with EF using a scene in the store model.

That being said, you can be able to do this with LINQ using LINQ using context.ExecuteQuery (string). Remember that if you use ExecuteQuery, be sure to pass the variable as a parameter rather than a simple query, because your query is passed directly to the server and thus SQL injection should not be handled properly. SQL injection Here's an example of avoiding:

  slow search name = "foo" string like string = "select id, lastname, firstname, website, timestamp" & amp; _ "From Dbo.uthor" & amp; _ "Where is the included (last name, {0})" slow writer "IEnumerable = (in the form of authored) = as a reference.exquet (author) (sql, search name)  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -