[ad_1]
Asked
Viewed
25 times
I have problem with Linq to SQL statement every time I run this code:
myDBDataContext dc = new myDBDataContext();
var id = (from x in dc._tbl_Accesses
where x.First_Name == "xxx" && x.Last_Name == "xnxx"
select x.First_Name);
textBox1.Text = id.ToString();
In the textbox, I get:
SELECT [t0].[First_Name]
FROM [dbo].[_tbl_Access] AS [t0]
WHERE ([t0].[First_Name] = @p0) AND ([t0].[Last_Name] = @p1)
instead of some data retrieved from the database.
1
default
[ad_2]