Jean-Claude Trachsel Senior Consultant Trivadis AG Building a Website with ASP.NET MVC.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

2012 © Trivadis BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN Welcome November 2012 Highlights BI.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Financial Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
 Stephen Walther ASP.NET MVC Ninja Microsoft Corporation PV31.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
What’s new in ASP.NET MVC 3 Building a NerdDinner/AppStore Application.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
 Bertrand Le Roy Senior Program Manager Lead Microsoft Corporation PC32.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Jean-Claude Trachsel Senior Consultant Trivadis AG.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Jean-Claude Trachsel Senior Consultant, Trivadis AG The good news.

Возможности Excel 2010, о которых следует знать
Microsoft Build /11/2018 2:12 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
ASP.NET Roadmap Mike Ormond Developer & Platform Group Microsoft Ltd
ASP.NEXT The ASP.NET 3.5 Extensions
12/2/ :05 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Title of Presentation 12/2/2018 3:48 PM
Create rich, data-driven Web apps with ASP.NET 4.5 Web Forms
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
7/19/2019 2:53 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Presentation transcript:

Jean-Claude Trachsel Senior Consultant Trivadis AG Building a Website with ASP.NET MVC

IT SOLUTIONS, SERVICES, & PRODUCTS TECHNOLOGIES Microsoft, Oracle, IBM, Open Source Integration, Application Performance Management, Security TrainingManaged Services Infrastructure Engineering Application Development Enterprise Content Management BUSINESS INTEGRATION SERVICES IT departments Business departments CUSTOMER Business Intelligence Trivadis solutions portfolio and competences

Hamburg Düsseldorf Frankfurt Stuttgart Munich Freiburg Vienna Basel Bern Zurich Lausanne ~370 employees ~170 employees ~20 employees Trivadis facts & figures 11 Trivadis locations with more than 550 employees Financially independent and sustainably profitable Key figures 2010 Revenue CHF 101 / EUR 73 mio. Services for more than 700 clients in over 1‘800 projects Over 170 Service Level Agreements More than 5'000 training participants Research and development budget: CHF 5.0 / EUR 3.6 mio.

Agenda What is ASP.NET MVC Building a Website Features we need to know

What is ASP.NET MVC Web Development Framework Based on the ASP.NET Framework Based on the MVC Design Pattern Acronym for Model ● View ● Controller Separation of concerns

ASP.NET Web Forms ASP.NET MVC ASP.NET Framework.NET Framework

Technologie Focus ASP.NET WebForms Make Web Development fast and easy Hide Web Specifica WinForms similar Programming Model  Statefull, event driven, many rich controls ASP.NET WebForms Make Web Development fast and easy Hide Web Specifica WinForms similar Programming Model  Statefull, event driven, many rich controls ASP.NET MVC Full Control Web Development Great Testability, Maintainability and Extensibility  Stateless, trendy, separation of concerns, perfect ajax integration ASP.NET MVC Full Control Web Development Great Testability, Maintainability and Extensibility  Stateless, trendy, separation of concerns, perfect ajax integration

Agenda What is ASP.NET MVC Building a Website Features we need to know

Build a website in 5 steps AdventureWorks DB CRUD Functionality for Vendor table

Setup the Solution

Model Business Logic Layer Data Access Layer Architecture Repository Pattern Services Layer This is not ASP.NET MVC specific Model

Demo Architecture MVC Project Controller View Model Data Project Entity Framework Model DataAnnotations Services Project IEn…on GetItems(); T GetItem(int id); void Save(); IEn…on GetItems(); T GetItem(int id); void Save(); IRepository IEnumeration GetItems(); T GetItem(int id); void Save(); IEnumeration GetItems(); T GetItem(int id); void Save(); VendorRepository Model

Define the Model

Controller Class in C# (VB) Handles all interactions and requests Controller base class Provides many helper methods Action Return Values For testing purpose Controller

Build the Controller

View Aspx or Razor (.cshtml) File No Code Behind File Controls No Server Controls (no ViewState) Pure HTML Code Presentation Logic in C# (VB) or JavaScript Html Helper class Views

Build some Views

Test Controller Logic Seperate Test Projects Views Models Usefull tools Dependency Injection (DI) Mock Framework Unit Test

Build a Unit Test

Agenda What is ASP.NET MVC Building a Website Features we need to know

Validation Supports DataAnnotations Features Attributes on the model Generates Client- and Server Code.NET 4 DA-Features Support (Version 3 Feature) IsValid overloads in the ValidationAttribute IValidatableObject Interface Remote Validation Attribute (Version 3 Feature) Defines Controller and Action for jQuery validation

Filters Aspect Oriented Programming (AOP) Framework Integrated in ASP.NET MVC Standard Filters [HandleError], [Authorize], [OutputCache] Base class for your own filter Global Filters (Version 3 Feature) Conditional filters thru IFilterProvider

Compact, Expressive and Fluid Easy to learn Is not a new language Works with any Text Editor Visual Studio provides Intellisense and syntax highlighting

1 character instead of 5 for code blocks (no closing tag needed) Parser has semantic knowledge of C# / VB Aspx: Coding is fast, fluid and fun

“Hello world” sample " %> Razor Demo Razor Demo Hello World, we got Number 1: and Number = "Razor Demo";} Razor Demo Hello World, we got Number and Number Razor aspx

Trivadis TechDays11 Wettbewerb

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.