Hello all,
I recently started a trial for the Telerik WPF control suite and am experimenting with the DataPager. As I understand, it should be able to load server-side paged data. I however cannot even start and try to bind it to my view, as the ctor for the QueryableCollectionView() throws exceptions for what seems to be a correct IQueryable. I'm using the EF Core 1.0 with Sqlite. Perhaps this is not supported? EF 6 seems to work fine.
My DbContext and Test entity (doesn't get any simpler than this):
public class Test
{
public int Id { get; set; }
}
public sealed class CRMMirrorContext2 : DbContext
{
#region Constructors, Destructors
public CRMMirrorContext2()
{
Database.EnsureCreated();
}
public DbSet<Test> Tests { get; set; }
#endregion
#region Other Methods
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
try
{
var connectionString = @"Filename=C:\Temp\test.db";
optionsBuilder.UseSqlite(connectionString);
}
catch (Exception)
{
// TODO: log/handle error
}
}
#endregion
}
I'm instantiating the QueryableCollectionview like this in my VM:
public CalendarViewModel()
{
this.InitializeProperties();
this.InitializeCommands();
using (var context = new CRMMirrorContext2())
{
var c = new QueryableCollectionView(context.Tests);
}
}
See attach for the exception message, hope you guys can help out with this.
Thanks in advance.