Exemplo n.º 1
0
        public ActionResult RemovedEntities(int?page)
        {
            var entityHolder = EntityHolderProvider.GetEntityHolder();

            var removedEntities = entityHolder
                                  .RemovedEntities
                                  .OrderBy(e => e.TypeName)
                                  .ThenByDescending(e => e.LastModified)
                                  .AsEnumerable();

            var pageNumber      = page ?? Constants.DefaultPage;
            var entitiesPerPage = removedEntities.ToPagedList(pageNumber, Constants.EntitiesPerPage);

            return(this.View(entitiesPerPage));
        }
Exemplo n.º 2
0
        private void CompareEntities()
        {
            var entityComparer = (IEntityComparer)DependencyResolver.Current.GetService(typeof(IEntityComparer));

            entityComparer.CompareEntities(EntityHolderProvider.GetEntityHolder(), Constants.PreviousVersion, Constants.CurrentVersion);
        }