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

Brand new WPF Application, MVVM, and how to use POCO partical classes generated from ADO Entity Data Model....?

I've asked this before, but I actually still needed help... Here's the scenario: I'm starting a new WPF application, and want to use MVVM. Because our DBA has created a database with tables we need to perform CRUD operations on, I used the Database…
0
votes
1 answer

Updating multiple rows from a list in entity framework

I fetch a list of rows (Id,field1,f2...) and do some computation and store the result in a IList. I want to now update all the values in this list to a table T. I am using entity framework and this needs to be a transaction. Will it be fine if I…
0
votes
2 answers

MVC Entity Model not showing my table

I have a database with multiple tables, and some basic relationships. Here is an example of the problem I am having: My…
0
votes
2 answers

How to create "embedded" SQL 2008 database file if it doesn't exist?

I've created a database application using C#, ADO.Net and an embedded MS SQL 2008 database file (that attaches to MS SQL 2008 Express) which I created in Server Management Studio. Can someone point me to a resource that describes how I can…
ejwipp
  • 361
  • 1
  • 7
  • 16
0
votes
1 answer

FormDataEntities en.SaveChanges() Throwing Exception

I heard about the new entity framework for .net, and decided to modify my code to use this framework, but when I try to add and delete records from the table, an Exception is thrown. I am NEW to this framework, so I can't figure out how to fix this…
xaav
  • 7,876
  • 9
  • 30
  • 47
0
votes
1 answer

Multiple Databases in ASP.NET MVC

I'm very first experience in ASP.NET MVC and after I read through a few articles I decided I try my new project with MVC. And I used ADO.net entity data model and I created Create/ Delete/ Details/ Edit/ Index. It works fine. So I plan to improve in…
0
votes
1 answer

How to delete using ADO.Net Entity Framework

I am unable to delete a record from the the table using ADO.Net Entity Framework. Debugging lets me go through the method without any errors. Cust_DataModel.Cust_DataEntities db = new Cust_DataModel.Cust_DataEntities(); protected void…
Picflight
  • 3,832
  • 13
  • 61
  • 90
0
votes
1 answer

How to solve multiple databases in one edmx for ASP.net MVC?

After I searched around on Google and Stackoverflow, I understand that I need to ask because I'm newbie about MVC. My question is How to use multiple databases on edmx? I think if I can put entity from different databases on same edmx, MVC can…
0
votes
1 answer

Is it possible to NOT map an assocation in ADO.NET entity framework

I'm working on a project that uses ADO.NET entity framework as the ORM framework for getting data in and out the database. This all works great, but there's one association that I don't want to map. At least I don't want the developers to navigate…
Willem Meints
  • 1,152
  • 14
  • 33
0
votes
3 answers

Visual Studio 2010 Beta 2 & ADO.NET Entity Data Model

I just installed the beta for VS2010 Ultimate and I cannot locate the ADO.NET Entity Data Model template. I was under the impression that it as installed, can someone correct this or direct me where I can find it? Thanks.
Anthony Forloney
  • 90,123
  • 14
  • 117
  • 115
0
votes
3 answers

Entity Framework and LINQ: Is there anyway to auto reflect the renamed entity in LINQ query

I was trying to change the table names in the entity model or database but the old names are already use in many places in the application. Is there any way to auto reflect renamed entities or tables in the LINQ query or code. Let say I have tables…
0
votes
1 answer

Generics and Database Access

I have the following method I can pass in a lambda expression to filter my result and then a callback method that will work on the list of results. This is just one particular table in my system, I will use this construct over and over. How can I…
DavidA
  • 467
  • 1
  • 4
  • 14
0
votes
1 answer

how to assign DbEntities object to my model object in EF Database first

I am doing a project for my course work, I am using database first entity framework and got my DBContext class as public partial class StudentDBEntities : DbContext { public DbSet LoginDetails { get; set; } public…
0
votes
1 answer

Datagridview insert data not show

I just learn linq and trying to make insert update delete with linq and ado.net data entity model. Now I'm have some problem, when I'm insert some data, the datagridview not show that, I must close the program and run it again to show the latest…
0
votes
2 answers

Selecting multiple tables with DataServiceQuery

I am using a WCF Data Service and a ASP.NET host, where I have a entity data model for a recipe database. The entity "Recipe" is connected to "Ingredient", which is connected to "Unit". In my client (a windows 8 RT app), I am trying to query the…