0
Answer

Entity Framework

1. from m in me.Messages where m.RoomID == Convert.ToInt32(lblRoomId.Text)
                            orderby m.TimeStamp descending
                            select m).Take(20).OrderBy(m => m.TimeStamp);
Above Query is in Linq and should be changed to Entity Framework

2.