Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
RavenDB 2.x Beginner's Guide

You're reading from  RavenDB 2.x Beginner's Guide

Product type Book
Published in Sep 2013
Publisher Packt
ISBN-13 9781783283798
Pages 356 pages
Edition 1st Edition
Languages
Author (1):
Khaled Tannir Khaled Tannir
Profile icon Khaled Tannir

Table of Contents (21) Chapters

RavenDB 2.x Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Getting Started with RavenDB RavenDB Management Studio RavenDB.NET Client API RavenDB Indexes and Queries Advanced RavenDB Indexes and Queries Advanced RavenDB Document Capabilities RavenDB Administration Deploying RavenDB Scaling-out RavenDB RavenDB Profiling RavenDB HTTP API Putting It All Together Pop Quiz Answers Index

Time for action – adding the Views


You will add a View for each action method in the CountryController class.

  1. In the World.Web project, open the CountryController class.

  2. Right-click on the Index() method, select Add View… to create the Index View as follows:

    1. In the Add View Dialog, check the Create a strongly typed-view option.

    2. Choose the Country (World.Models) class model.

    3. Select List as Scaffold Template.

    4. Check Use a layout or master page and select the ~/Views/Shared/_Layout.cshtml layout.

      Tip

      You should always build your solutions before adding Views to ensure that your class Models are listed in the Model Class list.

  3. Repeat step 2 to create Views for Edit, Create, Details, and Delete actions methods; you may use this table to specify Scaffold Template for each view:

    Action method

    View Scaffold Template

    Details

    Details

    Edit

    Edit

    Create

    Create

    Delete

    Delete

  4. Save the World application and build it to ensure that it builds successfully.

What just happened?

You just created a standard MVC...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}