01 net saturday alex krakovetskiy ''asp.net scaffolding''

415 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
415
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

01 net saturday alex krakovetskiy ''asp.net 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 />

×