Reply to comment

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
error is "Error 1 The type arguments for method 'System.Linq.Queryable.OrderBy(System.Linq.IQueryable, System.Linq.Expressions.Expression>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. "

how to fix it ? please help me :D

Reply