Literal in select query instead of bind variables
Posted: Mon 05 Aug 2013 15:13
I try simple linq query
var books = Context.Books
.Where(b => b.BookId == 1)
.ToList();
I see in dbmonitor that the sql is
SELECT
Extent1.BookId,
Extent1.Name_Rus,
Extent1.Name_Eng,
Extent1.Code_Rus,
Extent1.Code_Eng,
Extent1.AUTHOR
FROM Book Extent1
WHERE Extent1.BookId = 1
Why did not use the bind variable instead of literal in sql and how can i config devart to use bind variable in select query?
Thanks.
var books = Context.Books
.Where(b => b.BookId == 1)
.ToList();
I see in dbmonitor that the sql is
SELECT
Extent1.BookId,
Extent1.Name_Rus,
Extent1.Name_Eng,
Extent1.Code_Rus,
Extent1.Code_Eng,
Extent1.AUTHOR
FROM Book Extent1
WHERE Extent1.BookId = 1
Why did not use the bind variable instead of literal in sql and how can i config devart to use bind variable in select query?
Thanks.