So you want to develop to your database? Do you have your own tools to check performance? Does Chris Shaw's Utility Database sound like a tool you have and want a web interface, but don’t want to write a lot of code? I will demonstrate how a simple ASP.Net MVC site can be developed and deployed against your database. See firsthand how easy we can use Shaw's utility database and access across the web over a mobile device so you may manage performance online whilst zipping your drink of choice.
Develop a Quick and Dirty Web interface to your database
1. Develop a Quick and Dirty Web
interface to your database:
for the DBA and other non-developers
Gabriel Villa
@extofer
extofer@gmail.com
www.extofer.com
6. What is ASP.Net MVC?
Model View Controller Pattern
Coordinates
User inputs
Controller and outputs
User Business
Interface Logic
View
Model
ASP.Net
Page 6
7. Programming code… moi?
• HTML 5
• CSS3
View
• Scripts
• Razor
• C#/VB.Net Controller Model
• Any other .Net CLR
Page 7
8. What is needed?
• .Net Framework 4.x
• Microsoft Visual Studio
• Visual Web Developer 2010 Express
• Entity Framework
• Db Context Generator
• Initializr
• Utility Database
• Windows Phone Emulator
• Version Control
Page 8
14. ASP.Net MVC Directory Structure
App_Data – physical data store
Content – CSS, images
Controller – class files for each
controller, each named in the same
convention, i.e “HomeController”
Models – business logic classes
Scripts – client side scripts to support
application, such as Jquery and AJAX
Views – location of the view files
Page 14
15. Resources
• .Net Framework 4.x
• Download: Microsoft .NET Framework 4 (Web Installer) -
Microsoft Download Center - Download Details
http://bit.ly/J1pJ5s
• Visual Web Developer 2010 Express
• Free Developer Tools - Visual Studio 2010 Express |
Microsoft Visual Studio http://bit.ly/J1pUh2
• Nuget or Extention Manager
• Entity Framework
• Db Context Generator
• Initializr
• Start an HTML5 Boilerplate project in 15 seconds!
http://bit.ly/J1qCLc
Page 15
16. Resources .. cont’d
• Utility Database
• Authored by Chris Shaw
• http://chrisshaw.wordpress.com
• Windows Phone Emulator
• WP SDK 7.1 - Microsoft Download Center - Download
Details http://bit.ly/J1r1xc
• Version Control
• Getting Started With TFS 11 Express Beta - Chaks'
SharePoint Corner - Site Home - MSDN Blogs
http://bit.ly/J1rorA
• Git - Fast Version Control System http://bit.ly/J1ruQe
• TortoiseSVN http://bit.ly/J1rBLF
• Mecurial http://mercurial.selenic.com/
Page 16
17. Was it good for you?
We answered what ASP.Net MVC is
Set you on your way to develop to your own
database
We wrote less code
Open Source Community
Deployed
Page 17
18. Thank you!
Gabriel Villa
www.extofer.com
@extofer
You can download the project on GitHub:
https://github.com/extofer/MUDBug
Page 18