private static void LinqOverDataTable() { var dal = new InventoryDalDc( @"Data Source=SEGOTW10393726;Initial Catalog=AutoLot;Integrated Security=True"); var data = dal.GetAllInventory(); //var moreData = from c in data where (int)c["CarId"] > 5 select 5; }
public MainForm() { InitializeComponent(); const string connectionString = @"Data Source=SEGOTW10393726;Initial Catalog=AutoLot;Integrated Security=True;Pooling=False"; _dal = new InventoryDalDc(connectionString); inventoryGrid.DataSource = _dal.GetAllInventory(); }