I'm trying to get data from my local database that is present in my app project.
This is the code:
private void HW_Info()
{
const string strConnectionString = @"appdata:/WInfoAppDevicesDB.sdf";
using (DeviceDataContext db = new DeviceDataContext(strConnectionString))
{
var projectName = from m in db.Devices
where m.ProductName == deviceName
select m;
}
}
The problem is that I didn't obtain values of my table, but a string of SQL query, and I don't know which table app will choose (there are three tables with same columns type).
(I'm newbie with Linq-to-SQL because I studied only SQL, so I apologize for my lack of preparation about it)