Datapager and EF Core 1.0 support

3 posts, 0 answers
  1. Joseph
    Joseph avatar
    2 posts
    Member since:
    Aug 2011

    Posted 30 Aug Link to this post

    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. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 02 Sep Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Joseph
    Joseph avatar
    2 posts
    Member since:
    Aug 2011

    Posted 05 Sep in reply to Ivan Ivanov Link to this post

    Hi Ivan,

    Thanks for your answer - unfortunate but completely understandable.

    All the best,
    Joseph

Back to Top