Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6872295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:54:35+00:00 2026-05-27T03:54:35+00:00

What I know about web development I can count on one hand. In an

  • 0

What I know about web development I can count on one hand. In an effort to change that I have begun to look at asp.net web pages as this technology seems to have a low technical barrier to entry and sits nicely, in my view, above plain ‘ol HTML.

I have been working through some samples and something has caught my eye. To create a connection and query a database you simply have to do this:

@{
  var database = Database.Open("deanvmc");
  var sqlQuery = "SELECT * FROM Articles";
  var data = database.Query(sqlQuery);
}

From that I seem to be able to access the row data from the returned table in the following fashion:

@foreach(var row in data)
{
    <article>
        <h3>@row.Heading</h3>
        <nav>
            <ul>
                <li>@row.DatePosted</li>
                <li>@row.Category</li>
                <li>0 Comments</li>
            </ul>
        </nav>
        <p>@row.SubHeading</p>
    </article>
}

Is this an ORM at work? Is it correct to assume that the object contained in row will always be mapped to the columns returned from the sqlQuery?

Also, is this a function of webmatrix as a stack or asp.net web pages as a library? I am a little confused about where one ends and the other begins.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:54:36+00:00Added an answer on May 27, 2026 at 3:54 am

    The code above does not use an ORM – it is simply mapping fields returned from the database view to the row object returned by your query. So your assumption is correct – all of the object properties are mapped to the columns returned from the query.

    WebMatrix itself is just a web development tool – it provides the editor, templates, and other dev tool type things. The libraries you’re using (ASP.NET Web Pages with Razor & C#) are the stack on top of which your application is built. WebMatrix happens to also support non .NET technologies such as PHP, and may support more in the future.

    I know this was kind of open ended, but hopefully I was some help. Happy Coding!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently don't know any thing about web services, except that they are used
I have little question about how web browser retrieve webpage? I know this User
I have started in web development not long time ago. I know some stuff
Yes, I know about addons such as Firebug or the Web Developer Toolbar that
I am very new to web development (about a month) and i have run
I have been doing some web development, and now I want to know further
i have worked using .Net i do not know about java can you please
i don't know much about IIS, except it's a web server (just like apache)
Does anyone know any more details about google's web-crawler (aka GoogleBot)? I was curious
I just started thinking about creating/customizing a web crawler today, and know very little

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.