Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected ListItem[] GetHoursTypesListItems(BaseLocationHoursDataSet pData)
- {
- return (
- from l in pData.LocationHours // putting cursor over the l here shows: (range variable) TSource l
- select new ListItem
- {
- Value = l, //ignore the fact that I didn't specify a property - that's the problem, that none of the properties of the object show up.
- Text = l
- }
- ).ToArray<ListItem>();
- }
- select new ListItem
- {
- Value = l.Field,
- Text = l.Field2
- }
- var query = pData.Tables["Name"].AsEnumerable()
- DataSet ds = new DataSet();
- FillOrders(ds);
- DataTable orders = ds.Tables["SalesOrderHeader"];
- var ordersQuery = orders.ToQueryable();
- var query = from o in ordersQuery
- where o.Field<bool>("OnlineOrderFlag") == true
- select new { SalesOrderID = o.Field<int>("SalesOrderID"),
- OrderDate = o.Field<DateTime>("OrderDate") };
- pData.LocationHours.Select(l=>new ... )
- IEnumerable<TResult> Select<TSource, TResult>(
- this IEnumerable<TSource> source, Func<TSource, TResult> projection)
Add Comment
Please, Sign In to add comment