MultiTestDataContext _DC_MultiTest = new MultiTestDataContext(global::Infrastructure.Properties.Settings.Default.Linq_TestConnectionString);
using (_DC_MultiTest)
{
IQueryable _IQueryMultiTestA_Details = (from MultiTestADetails in _DC_MultiTest.tbl_MultiTestAs
select MultiTestADetails).AsQueryable();
foreach (var _var in _IQueryMultiTestA_Details)
{
MessageBox.Show(((Infrastructure.Linq_Database.tbl_MultiTestA)_var).ColA);
}
IQueryable<tbl_MultiTestA> _IQueryMultiTestA_Details_ByType = (from MultiTestADetails in _DC_MultiTest.tbl_MultiTestAs
select MultiTestADetails).AsQueryable<tbl_MultiTestA>();
foreach (tbl_MultiTestA _TableRecordDetails in _IQueryMultiTestA_Details_ByType)
{
MessageBox.Show(_TableRecordDetails.ColA);
}
if (DC_MultiTest_GLOBAL.DatabaseExists())
{
dgvMultiJoins.DataBindings.Clear();
dgvMultiJoins.DataSource = (from MultiTestADetails in DC_MultiTest_GLOBAL.tbl_MultiTestAs
select MultiTestADetails);
dgvMultiJoins.DataBindings.Clear();
dgvMultiJoins.DataSource = (from MultiTestADetails in DC_MultiTest_GLOBAL.tbl_MultiTestAs
select MultiTestADetails).AsQueryable();
}
}