I have a problem again.
Use LinqConnect Professional Version 4.1.197 (28-Feb-2013).
When work with SQLite get error.
Code: Select all
var sdt = new CrmDemoContextSQLite.CrmDemoDataContextSQLite();
sdt.Connection.Open();
// In my project, then calculated value. For simplicity, wrote this in an example.
bool bIsGeneralUser = true;
var query = from o in sdt.Orders
from c in o.Customers.Where(c => bIsGeneralUser || (c.Name == "test"))
select new
{
o.OrderID,
c.Name
};
dataGridView1.DataSource = query;
The sample project: DevartSQLiteSample.rar