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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:26:01+00:00 2026-06-15T23:26:01+00:00

I use a EF code first to create my system. Recently I want to

  • 0

I use a EF code first to create my system.

Recently I want to use it to map the view on SQL server , but it has problems

I create the model as the view name V_InProcessRMForm

This view is from the other dept. I have no right to change it and needn’t .All I want is map the data from this view and show on the web page .

public class DmsEntity : DbContext
{
    public DbSet<V_InProcessRMForm> V_InProcessRMForm { get; set; }
}

public class V_InProcessRMForm
{
    [Key]
    public string Docid { get; set; }

    public string FormNm { get; set; }
    public string ChangeDocId { get; set; }
    public string Stats { get; set; }
    public string CancelReason { get; set; }
 }

when the code run here it display : you have no CREATE TABLE right ont it.

DmsEntity entity = new DmsEntity();
var l = from a in entity.V_InProcessRMForm

Has anyone can help me ? thanks a lot .

  • 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-15T23:26:02+00:00Added an answer on June 15, 2026 at 11:26 pm

    Finally I change the way , I use the normal EF to resolved this problem.
    That generates the edmx file and I can use it accesses the view data now.

    Thanks a lot.

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

Sidebar

Related Questions

I use Entity Framework code-first. DataBaseName - I want to create a database in
I'm trying to use Code First with my local instance of Sql Server 2008
I use EF 4.2 code first in my mvc3 project. miniprofiler works fine (sql
Here's sample model classes, which being use with Entity Framework Code First: public class
I'm trying to create a database model with Code First, without creating the database
I have several Entity Framework Code First DbContext objects that use a custom Initializer.
First off I use this code to make the navigation bar always stay fixed;
I use this code to determine checkbox width and height: var chk = $('input[type=checkbox]:first');
First the requirements: By management requirements, I can't use open source code. I need
I want to use code beside files for my views in my ASP.NET MVC

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.