Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Dotnet saturday mvc_scaffolding

609 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Dotnet saturday mvc_scaffolding

  1. 1. ASP.NET Scaffolding<br />КраковецкийАлександр<br />Software Engineer, Frayman Group<br />Microsoft Regional Director, ASP.NET MVP<br />Alex.Krakovetskiy@gmail.com, @msugvnua<br />http://msug.vn.ua, http://wp7rocks.com/<br />
  2. 2. Содержание<br />ASP.NET Dynamic Data<br />Для ASP.NET Web Forms приложений<br />ASP.NET MvcScaffolding<br />Для ASP.NET MVC 3 приложений<br />
  3. 3. Изучение ASP.NET MVC<br />Быстрая разработка<br />Избавление от рутинной работы<br />Создание похожих классов и/или компонентов<br />Кодогенерация (да, есть Т4, но...)<br />Это удобно (NuGet + PowerShell = автоматизация)<br />Scaffolding! Зачем?<br />
  4. 4. PowerShell 2.0<br />ASP.NET MVC 3 Update<br />NuGet<br />Install-Package MvcScaffolding (+ EFCodeFirst, T4Scaffolding)<br />Install-Package EFCodeFirst.SqlServerCompact<br />Установка<br />
  5. 5. Scaffold Controller Team<br />Scaffold Controller Team –Repository -Force<br />Get-Scaffolder<br />Scaffold MvcScaffolding.AspxView Index Team<br />Get-DefaultScaffolder<br />Set-DefaultScaffolder View MvcScaffolding.AspxView<br />Начинаем работу<br />
  6. 6. -ControllerName<br />-Project<br />-CodeLanguage (cs, vb)<br />-DbContextType (<yourProjectName>Context)<br />-Repository<br />-Area, -Layout<br />Основные параметры<br />-Force, -NoChildItems<br />
  7. 7. http://wp7rocks.com<br />http://msug.vn.ua<br />http://twitter.com/msugvnua<br />Alex.Krakovetskiy@gmail.com<br />Спасибо за внимание!<br />

×