1 / 13

Пример разработки сайта на MVC3

Пример разработки сайта на MVC3. Олег Аксенов {@OlegAxenow} Директор департамента производства ФогСофт. Model-View-Controller (MVC). Шаблон Разделение ответственности ASP.NET MVC. Scaffolding. Быстрая генерация чего-либо, с целью последующей доработки

donal
Download Presentation

Пример разработки сайта на MVC3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Пример разработки сайта на MVC3 Олег Аксенов {@OlegAxenow} Директор департамента производства ФогСофт

  2. Model-View-Controller (MVC) • Шаблон • Разделение ответственности • ASP.NET MVC

  3. Scaffolding • Быстрая генерация чего-либо, с целью последующей доработки • В MVC – генерация CRUD-логики и представлений • Маркетинг…

  4. MVC 3 Tools Update • http://www.microsoft.com/web/gallery/install.aspx?appid=MVC3 • Scaffolding • Intranet project template • Скрипты через NuGet • HTML5

  5. Entity Framework 4.1 • Code First • POCO! POCO! POCO! • Что есть • Чего не хватает

  6. MvcScaffolding • http://mvcscaffolding.codeplex.com/ • NuGet: Install-Package MvcScaffolding • Расширяемые генераторы • PowerShell + T4 • http://blog.stevensanderson.com/category/scaffolding/

  7. ModelScaffolding • http://modelscaffolding.codeplex.com/ • Дополнение к MvcScaffolding • Генерирует модель • Conventions для типов и ссылок • Возможность рекурсивной генерации, в том числе контроллеров и представлений

  8. Постановка задачи для Demo • Прототип, внешний вид нас пока не интересует. • Список товаров (идентификатор, название). • Товары разбиты на категории (плоский список) • У товара может быть производитель. • Дополнительно у товара будет количество на складе.

  9. Scaffolding Демонстрация

  10. Резюме • Хорошие инструменты для своего круга задач • Возможность расширения • Хотелось бы увидеть более полный функционал

  11. Дополнительные материалыи ссылки • http://weblogs.asp.net/scottgu/ • http://haacked.com • http://blogs.msdn.com/b/adonet/ • http://blog.stevensanderson.com • http://olegaxenow.com

More Related