Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from c in context.Table
- where key == int.Parse(c.KeyAsString)
- order by int.Parse(c.KeyAsString)
- select c
- var keyString = key.ToString();
- var query = from c in context.Table
- where keyString == c.KeyAsString
- order by c.KeyAsString
- select c
- var query = from c in context.Table
- let IntOrder = context.Table.Take(1).Select(x => c.KeyAsString).Cast<int>().FirstOrDefault()
- where IntOrder == key
- orderby IntOrder
- select c;
Add Comment
Please, Sign In to add comment