Popular Articles
Recent comments
- jkll
14 hours 48 min ago - Thank You
1 day 14 hours ago - Another approach
3 days 15 hours ago - Issue
4 days 5 hours ago - thanks
4 days 15 hours ago - Calendar date time
4 days 21 hours ago - Nice Explanation
5 days 1 hour ago - ramya
1 week 22 hours ago - thank a lot
1 week 1 day ago - Very useful, but...
1 week 4 days ago

please help me, i am beginner , i have an error about this code
if (!String.IsNullOrEmpty(sSortType))
{
query = DbContext.Projects.OrderBy(sSortType);
}
"query = DbContext.Projects.OrderBy(sSortType);" is error with me(System.Linq.IQueryable, System.Linq.Expressions.Expression>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. "
error is "Error 1 The type arguments for method 'System.Linq.Queryable.OrderBy
how to fix it ? please help me :D