using System;
using System.Linq;
using Telerik.Windows.Data;
using System.Data.Entity;
using System.Data.Objects;


namespace QECV
{
	public class MyViewModel
	{
        private readonly QueryableEntityCollectionView<Employee> employeesView;

		public MyViewModel()
		{
            DbContext dbContext = new AdventureWorks2012Entities();
            ObjectContext objectContext = ((System.Data.Entity.Infrastructure.IObjectContextAdapter)dbContext).ObjectContext;
            this.employeesView = new QueryableEntityCollectionView<Employee>(objectContext, "Employees");
		}

        public QueryableEntityCollectionView<Employee> EmployeesView
        {
            get { return this.employeesView; }
        }
	}
}
