You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've just added the package to my project, and it looks really nice and very promising. However, unless I set: collectionConfig.SetSortProperty(p => p.FullName, SortDirection.Descending);
it keeps throwing a Server error "Failed to get entities". It doesn't work even if I put the sort direction as Ascending instead of Descending.
Additionally, no matter what's the size of the page, I always get the error from above ('Failed to get entities'). I really don't understand why is this happening.
Here's my model:
[TableName("CustomUsers")]
[PrimaryKey("Id", autoIncrement = true)]
[ExplicitColumns]
public class CustomUser
{
[Column("Id")]
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
[Column("UserId")]
public int UserId { get; set; }
[Column("FullName")]
public string FullName { get; set; }
[Column("Address")]
public string Address { get; set; }
[Column("City")]
public string City { get; set; }
[Column("Country")]
public string Country { get; set; }
[Column("Telephone")]
public string Telephone { get; set; }
[Column("Occupation")]
public string Occupation { get; set; }
}
Okay so yesterday it was a holiday so I wasn't at work, today I come in (not having changed anything) and it's working. I even tried it with ascending sort. It even works with removing the sort completely! I really don't understand why this happened lol. If I find out more info, will let you know.
Hi, I've just added the package to my project, and it looks really nice and very promising. However, unless I set:
collectionConfig.SetSortProperty(p => p.FullName, SortDirection.Descending);
it keeps throwing a Server error "Failed to get entities". It doesn't work even if I put the sort direction as Ascending instead of Descending.
Additionally, no matter what's the size of the page, I always get the error from above ('Failed to get entities'). I really don't understand why is this happening.
Here's my model:
Here's my configuration class:
The text was updated successfully, but these errors were encountered: