internal virtual IDataItemRepository CreateIDataItemRepository()
        {
            // TODO: Instantiate an appropriate concrete class.

            Database.SetInitializer(new DataItemInitializer());
            var context = new DataItemContext();
            context.Database.Initialize(true);

            IDataItemRepository target = new DataItemRepository(new DataItemContext());
            return target;
        }
 public DataItemRepository(DataItemContext ctxt)
 {
     context = ctxt;
     context.Configuration.ProxyCreationEnabled = false;
     context.Configuration.LazyLoadingEnabled = false;
 }