Questions tagged [edmx]

An .edmx file is an XML file in the .Net Entity Framework that defines a conceptual model, a storage model, and the mapping between these models.

Resources:

How to Create an edmx

The Entity Framework and ASP.NET

edmx File Overview

781 questions
0
votes
1 answer

Does the Visual Studio 2010 EDMX Designer work with DevArt dotConnect?

I'm trying to switch over a model to use the DevArt dotConnect driver. It's actually worked before, but it seems to have reverted back to the default .NET Oracle drivers after I re-generated the model. What I did was open up the .edmx file in…
Mike Christensen
  • 88,082
  • 50
  • 208
  • 326
0
votes
3 answers

Entity Framework no columns from simple query

I have the following stored procedure: SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[GetData] @taskName VARCHAR(205) = NULL AS BEGIN SELECT * FROM [dbo].[Table] WITH (NOLOCK) WHERE @taskName IS NULL …
jaekie
  • 2,283
  • 4
  • 30
  • 52
0
votes
1 answer

Connection string for remote membership aspnet.mdf

I have an MVC4 application with an aspnet.mdf database with membership tables and I’ve added two more tables to it. Locally I’m using “AccountModels.cs” to handle membership and a Database first EDMX modal to handle the two other tables. So I have…
Bojangles
  • 467
  • 1
  • 8
  • 21
0
votes
2 answers

Using nAnt to build projects containing EDMX

I've been working on training myself in the ways of using nAnt over the past few days, and have stumbled across an issue. During the development process, I've been using the new tools, like Entity Data Model, for database access. When you go to try…
Richard B
  • 1,581
  • 1
  • 15
  • 31
0
votes
2 answers

Where does EF4 DB first get it's relationship names?

I have a database table called "item" that has a self-referencing field called "itemParentID". When I generate an EDMX and models, I gain access to to "item.item1", which is the parent of the current item and "item.items1", which is a collection of…
Joel Peltonen
  • 13,025
  • 6
  • 64
  • 100
0
votes
3 answers

Relationships not replicated in a model created using entity framework in visual studio 2010

I'm having problems with entity framework The problem is pretty simple, I have a database in sql server 2008. When I import the tables for creating the edmx file in a visual studio 2010 project (using ADO.NET Entity Data Model), not all of…
0
votes
1 answer

Make two columns primary key in view

In SQL Server Management Studio you can edit a table in the Designer, select two columns, right click and make them a primary key. Is there a possibility to do this for a view too? Normally when I have a view in my database, it needs some column to…
JayAr
  • 441
  • 1
  • 5
  • 19
0
votes
1 answer

inheritance between edmx files

I have 5 different edmx files, each contains many tables (40 approximately). Now I wat to add same type reference property for some tables that lays on those diefferent edmxs. For example, Assume in edmx1 I have Worker entity, in edmx2 I have…
Naor
  • 23,465
  • 48
  • 152
  • 268
0
votes
1 answer

How To generate view for edmx to improve performance?

i have data layer,business layer and design layer,in which my .edmx file is placed in data layer. now i want to generate views for my .edmx file to improve performance. i tried the following process: ->set .edmx file's Metadata Artiface Processing…
Sagar Savsani
  • 25
  • 3
  • 11
0
votes
1 answer

How to create dynamic database in entity framework with specified path?

currently i create dynamic database using CreateDatabase() method in Entity Framework. it executes sucessfully and it creates database at following path: "c:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA" but i want to create…
-1
votes
1 answer

VS 2017 does not opens .edmx files in proper visual designer

EF Database models (.edmx) files are not opening in special VS EF data model designer. Just standard XML editor is working. All happening in VS2017 at win 10 (64). Here is the declaration of the EDMX file
-1
votes
1 answer

Error12 'Membership' is an ambiguous reference between 'System.Web.Security.Membership' and 'testSiteV1.Model.Membership'

I modified a data type from int to float, then, I updated model->edms file by select the 'update model from database'. It successfully updated but turns out with an error:Error 12 'Membership' is an ambiguous reference between…
Qiming
  • 1
  • 2
-1
votes
1 answer

Change column name in edmx

How can I change the column name in the class generated by .edmx? Not for the view purpose, instead changed column names should be available in the controller, so that meaningful column names are available for developers
Shamila
  • 23
  • 4
-1
votes
1 answer

VS2015 auto generated code is not correctly formatted

I am using Visual Studio Professional 2015 with Update 3. I have a .edmx file that contains my database model. When I update my model from the database, the auto-generated code is not correctly formatted. For example, previously I had something like…
PMerlet
  • 2,568
  • 4
  • 23
  • 39
-1
votes
1 answer

how do i switch my repositories so that i can use code First EF approch instead Model First Edmx Approch

In Existing project implementation done from edmx model first approach EF I have to use Code First approach . In existing project developed creating repository BO ,base Bo ,Enum classes . Have to reflect the same with just change in approach.