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

  • SEARCH
  • Home
  • 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 6626363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:53:01+00:00 2026-05-25T21:53:01+00:00

I am converting a classic ASP website to .NET. The application already has a

  • 0

I am converting a classic ASP website to .NET. The application already has a back-end database with stored procedures for communicating with the DB. I want to use MVC3 and EF for this project.

My question is where is a good moderate example of these working in this environment?

I understand how the Model View Controller pattern works on basic examples. I went through the MVC Music Store demo and deployed it. However, I’m struggling with where I put certain code.

I’m looking for examples of how to tie into the existing DB with EF using the stored procedures and how the models should look. I’m also looking for where do I put code which is traditionally object methods.

If I have a Contact model, where does the code go to interact with that contact? And I’m not talking about the code that brings back the data you want to push to the View. Is that where Repositories come in? If so, where is a good tutorial on using repositories?

I appreciate the help. I realize this is a bunch of questions in one, but I don’t think I’m the only one struggling with this either.

  • 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-25T21:53:02+00:00Added an answer on May 25, 2026 at 9:53 pm

    I would definitely put the DAL in a separate project and I would definitely create an abstraction layer between the data access layer and the business logic layer of my application.

    The Repository and Unit of Work Patterns are great for this purpose.

    You can take a look at following articles. They are great for starting to create your data access layer :

    Creating an Entity Framework Data Model for an ASP.NET MVC Application

    http://www.asp.net/entity-framework/tutorials/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application

    Implementing the Repository and Unit of Work Patterns in an ASP.NET MVC Application

    http://www.asp.net/entity-framework/tutorials/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

    These are from Getting Started with EF using MVC series on http://asp.net. You can find more useful articles there from the navigation panel on the left hand site there.

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

Sidebar

Related Questions

I'm converting an old classic asp website to asp.net. The application is basically an
I'm converting my website from Classic ASP to ASP.net and outside of a few
i'm converting a classic asp website to .NET and could use some suggestions to
I have some classic asp code that needs converting to asp.net. So far I
A client of mine has an application written in Classic ASP and COM+. The
I'm converting a classic ASP page to ASP.NET MVC 2. I have a simple
I am currently converting a very old, but working classic ASP site to ASP.Net.
I am converting my classic asp to .Net using parameterized queries. My problem is
I am converting a classic ASP application to PHP. In the Classic ASP app,
I'm converting classic ASP over to ASP.Net, and came up with this error for

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.