Questions tagged [ado.net-entity-data-model]

Covers the Entity Data Model-part of ADO.NET

Covers the Entity Data Model-part of ADO.NET

505 questions
0
votes
1 answer

System.Data.UpdateException on SaveChanges() with SQL Server CE

I am creating an Entity Framework 4-based app that uses SQL Server CE 3.5 as its data store. I have an empty .sdf file generated with the .sqlce script created from an Entity Data Model. When I run this code: Item item = new Item(); item.ID =…
Dev
  • 7,027
  • 6
  • 37
  • 65
-1
votes
2 answers

ADO.NET Entity Framework custom classes, the right choice?

I have an upcoming requirement, and I'm unsure if EF is the right approach. Essentially I have a Web Service Contract to implement, that has a handful of methods that return specific classes (DataContract classes with DataMember'd properties so they…
James Love
  • 1,025
  • 9
  • 16
-1
votes
1 answer

Creating new entities vs customizing existing entities

I have searched the web about the benefits of creating new entities, creating new entities vs Customizing existing entities etc. but I did not find anything which strongly supports the things and very specific where to use custom entity or where to…
Ankur
  • 161
  • 4
  • 14
-1
votes
2 answers

.NET 3.5 SP1 and ADo.NET Entity Framework

I have .NET 3.5 SP1 installed on my machine and VS 2008. I wanted to work with the ADO.NET Entity Data Model, but when clicking on ADD-> New Item and under data tab I am not able to see the option for Entity data model..Why is it so? Didnt the…
Rishabh Ohri
  • 1,280
  • 4
  • 16
  • 28
-1
votes
1 answer

Searching A Parts Table Using ASP.net MVC and ADO.net Entity Data Model gives Error Object Reference not Set to Instance of Object

Good Morning All, I am developing a new ASP.net MVC web application. Part of it's functionality is to search the Parts List on the SQL Server database. I have created a ADO.net Entity Data Model as part of the solution and named it PartList. I'm…
SidC
  • 3,175
  • 14
  • 70
  • 132
-1
votes
2 answers

EntityFramework - why so many entity keys?

I've created an Entity Data Model from my SQL Server database. Despite only having one primary key in each of my tables, almost all of my properties are marked as Entity Keys. I can of course modify these, but can anyone tell me why this happens?
Jonathan
  • 13,947
  • 17
  • 94
  • 123
-2
votes
1 answer

When Urge records are exist getting an StackOverFlow exception

Here studenDetailsList are getting from database which consists of 30,000 records Var studentDetailsList; Foreach ( var stDetails in studentDetailsList) { // Here i am inserting each student in to table } I am getting error has An unhandled…
kumar
  • 1,117
  • 13
  • 34
  • 58
-3
votes
2 answers

How to get SQL Server variable limit in C#

I have a SQL Server table Workers and it has a column Name which is of datatype nvarchar(20). I am using an ADO.NET Entity Data Model. In my project, I want to limit user input to 20 characters (limit of my Name column). How can I get this data…
SoruDev
  • 1
  • 2
-3
votes
2 answers

I'm looking for an ORM for my C# project. I tried ADO.net but i can't quite understand it

I added a new ADO.NET ORM object inside my project based on an already existing database. I was able to create a new object but I don't quite understand how to insert my new object in the database and get the ID generated from it. From the example…
-4
votes
1 answer

Can't insert or delete records in SQL Server 2014 using Visual Studio 2013

Context I am using Visual Studio 2013, and I have created an ADO.Net Entity Data Model which connect to my SQL Server 2014 database. I can retrieve my data and display it using RESTful services. Problem But I can't insert a data into any table…
BDeveloper
  • 1,175
  • 6
  • 24
  • 44
1 2 3
33
34