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 9084257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:57:24+00:00 2026-06-16T20:57:24+00:00

I am developing a mvc application in VS 2012 so I want use MVC

  • 0

I am developing a mvc application in VS 2012 so I want use “MVC controller with read/write action and view using Entity Framwork” when adding controller. So I have create a edmx file and with entity Person in tt class code is as

  namespace App1.Models
  {
   using System;
   using System.Collections.Generic;

   public partial class Person
   {
   public int PersonId { get; set; }
   public string Name { get; set; }
   public Nullable<System.Guid> UserId { get; set; }
   }
}

But I am little bit confused what I have to do next to access above mentioned technique. And what is data context class what I need to do. Please assist here for same. Thanks in advance !!

Edit

yea, thanks for reply.I think I have not explained my problem in broad okay lets do that. I have data base already created now I added a edmx file it will create tt class. Now when I add controller following options are there : Please Click Here

So basically I want to know how I implement this.

  • 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-06-16T20:57:25+00:00Added an answer on June 16, 2026 at 8:57 pm

    You need to add a database context, then build it.

    Then select add Controller, give the controller an name, and it will generate the controller and views for you.

    When you run it, the table will be automatically created for you.

    Have a look at this tutorial:
    http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4

    Here is another link, explaining how to do it using the Entity Framwork.
    http://msdn.microsoft.com/en-us/data/gg685489.aspx

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

Sidebar

Related Questions

I am developing MVC application and using razor syntax. I want to use HTML
I am developing an ASP.NET MVC application and I want to use OpenId. What
Hi every body i am developing a MVC application, and i want to use
Hello guys i am developing MVC application, I want to call a action (with
I am developing an ASP MVC application using Entity Framework. I was thinking of
I am developing an MVC application using nHibernate; running through VS's built in web
I am currently developing an MVC application in ASP.net. I am using AJAX.ActionLink to
I am developing MVC application in which I want to pass the Variable to
I am currently developing an mvc application to read from an existing sql server
I'm developing a spring-mvc application and i want to include javascript in one jsp.

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.