edmx Questions

9

Solved

I have a console application and what I'm trying to do is that every time the appllication runs, the date and time is sent to a table within my database. The table structure is like so: FTPRuns ...
Witherspoon asked 26/11, 2010 at 9:14

19

Solved

The strange thing is, it was working fine a few days ago. I added a new column to a table and was going to update the model through the designer and now it says "The Entity Data Model Designer is u...
Reliquiae asked 14/2, 2013 at 20:53

5

All of a sudden I cannot update the .edmx files I have in all of my projects in Visual Studio 2022. This is something I have done tons of times on various projects for years: open the .edmx, right ...
Amanita asked 6/3, 2023 at 19:36

3

Solved

This started with an EDMX suddenly not generating class files. The .context.cs file contains the class declaration like public virtual DbSet<myTable> myTable { get; set; } but the act...
Zoochore asked 28/5, 2023 at 22:15

11

I have a problem with an EDMX file which I've never encountered before. Seemingly randomly when the site is running or I'm debugging, the EF will bomb out and complain that everything is re-defined...
Tamboura asked 24/7, 2011 at 15:24

2

Solved

That is. I format my computer and install the entire enviroment again, but I can't see the data model diagram. I mean, I open the data model (edmx file) and I see all the DB tables and DB informati...
Scandic asked 9/8, 2012 at 16:27

7

Solved

Background first: I have a database-first EF6 model in Visual Studio 2015 (latest nuget 6.1.3 pointing to a local SQL Server 2014 SP1 Express database) on a Windows 10 Pro laptop. After I upgraded ...

9

Solved

command: add-migration blahblah -verbose error: Sequence contains no elements I did a few things before getting this error. I made a change to my code-first model but did not runadd-migration yet....

5

Solved

I'm looking for a way for retrieving Entity Data Model (EDM) from __MigrationHistory table using only T-SQL (so anyone, using Microsoft SQL Server Management Studio only, could do the same). I wan...
Percussionist asked 13/8, 2017 at 21:10

15

Solved

My connection strings are as follows: <add name="RollCallDBEntities" connectionString="metadata=res://System.Engine/RollcallNS.csdl|res://System.Engine/RollcallNS.ssdl|res://System.Engine/Rollc...
Babushka asked 21/8, 2013 at 7:59

2

Solved

If you are using object contex data model (with EDMX file), during its creation you might want to specify the connection string inside your config file. The connection string is unfortunately not...
Pistoleer asked 7/8, 2012 at 7:7

7

Solved

Every time I need to update my emdx from database, the update wizard takes an incredible amount of time to do so rendering itself as not responding once you hit the finish (as finish the update) bu...
Rummage asked 21/9, 2015 at 16:49

5

Solved

I was wondering if anyone knows a quicker way to find a table in the EDMX model than just scrolling through the diagram and looking for the thing. Our database has around 50 tables in it and when I...
Franklynfrankness asked 4/10, 2012 at 20:20

2

Below are my 2 class sharing 1 to many relationship : public partial class Employee { public int Id { get; set; } public string Name { get; set; } public virtual ICollection<Skills>...
Judgemade asked 27/9, 2017 at 14:49

1

I have access to a particular OData service (and metadata), but not the code behind building that service. I'm using REST Clients like Postman to test the service and view its metadata. However, th...
Iasis asked 14/11, 2017 at 18:41

13

I have this error when I build my Web Service: Error 3004: Problem in mapping fragment starting at line 323: No mapping specified for properties JE_TRN_HS.JE_HDR_HSJE_HDR_KEY. Entity i...
Retrogress asked 19/5, 2011 at 19:10

3

Solved

I've created an EDMX object from a database I'm programming against. I need to get input from a user and save it to a row in the database table. The problem is that I need to limit the length of i...
Hooch asked 19/11, 2014 at 18:57

3

Getting edmx error Unable to cast object of type 'MySql.Data.MySqlClient.MySqlProviderServices' to type 'System.Data.Common.DBProviderServices' when trying to open edmx designer for MySQL model. I ...
Bradleybradly asked 31/10, 2018 at 14:39

2

Solved

I am using the following C# OData packages, in a .NET Web Api project: Install-Package Microsoft.AspNet.OData Install-Package Microsoft.AspNet.WebApi.OData When following Microsoft's example ...
Corrasion asked 4/6, 2018 at 14:21

1

@ajcvickers I am also facing the same issue.. My web project was created in VS 2015 then after 1 years I start the development on 2017 and just few days back we jumped to 2019 but seems like the sa...
Lazarus asked 18/4, 2019 at 6:16

5

I have created a DataBase in SQL and created an EDMX in Visual Studio 2012. It automatically created POCO (TT) classes. Everything looks fine. Now I change the column name of a table. I update the...
Management asked 21/3, 2013 at 10:53

6

Solved

I have an edmx file and I changed a table in my database. I know that there is an "Update Model from database" wizard, however in many cases this is useless. For example if I change a field from n...
Prevaricator asked 14/3, 2012 at 18:45

2

Solved

I am new to MVC, and trying to call a stored proc from the controller. In the model I have edmx which has all stored procs as functions Cannot implicitly convert type System.Collections.Generi...
Bondman asked 23/12, 2013 at 7:5

3

Solved

I am receiving the error shown in the title from a LINQ query that includes two tables from two different edmx files. Here is the query: var query = (from a in db1.Table1 join b in db1.Table2 on ...
Mayers asked 7/9, 2011 at 11:16

3

I have the following stored procedure inside my SQL server 2008 r2 & asp.net mvc web application: USE [ITSERres] GO /****** Object: StoredProcedure [dbo].[AdvanceSearchSP] /* Script Date: 08/0...
Gummosis asked 4/8, 2014 at 15:49

© 2022 - 2024 — McMap. All rights reserved.