This is a migrated thread and some comments may be shown as answers.

Datapager and EF Core 1.0 support

2 Answers 115 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 30 Aug 2016, 09:21 AM

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.

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 02 Sep 2016, 08:35 AM
Hello,

The IQueryable extensions that lay in the core of our data control's data engine, currently does not support EF Core officially. We hope that we will be able to introduce it in the future, according to client's demand.

Regards,
Ivan Ivanov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Joseph
Top achievements
Rank 1
answered on 05 Sep 2016, 03:20 PM

Hi Ivan,

Thanks for your answer - unfortunate but completely understandable.

All the best,
Joseph

Tags
DataPager
Asked by
Joseph
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Joseph
Top achievements
Rank 1
Share this question
or