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

ADO.NET EF: Assign model to table without existing database

I've created an ADO.NET entity data model with Visual Studio and have to assign the properties to a matching table now. If I create the data model with an existing database, Visual Studio uses this database automatically to assign the properties. I…
0
votes
1 answer

How to call stored procedure with input parameters in ADO.NET Entity Framework 4 in ASP.NET 4.0

I am using Database first modal and EF4.0. I have created a stored procedure which required two input parameters and return dynamically column in result-set i.e. columns are not fixed in result.It may be 5 or 7 or 10 and so on. I am using Grid-view…
0
votes
0 answers

Update record using linq with ADO.NET with Oracle

I have created an ADO.NET entity data model, and using linq to update/edit my oracle database. using (Entities ent = new Entities()) { RUSHPRIORITYRATE rp = new RUSHPRIORITYRATE(); rp.RATE = rate; var query = from j in…
Erika
  • 289
  • 1
  • 5
  • 20
0
votes
1 answer

Select Apps not installed using Entity Framework 4

I am using Entity Framework with ASP.NET 4.0. This is a simple problem where i have to hide a Install button for all gadgets already installed by my user. I am using repeater for the databinding and UI generation. Database schema is as below …
0
votes
1 answer

Listview control not closing the insert items even after item inserted with entity framework in ASP.net

I am trying to insert data through a listview control which is kept inside a Update Panel. I have used a SQL datasource for showing the existing items. But for inserting the data, I am using stored procedures and calling them through ADO.net Entity…
djSmart
  • 113
  • 1
  • 7
0
votes
2 answers

Can't add Ado .Net Entity Data Model

I'm doing these steps: Create new vs2010 C# console application Project menu -> Add New Item select Ado.NET Entity Data Model -> click Add Entity Data Model wizard window opened. Select Generate From database -> Click Next The next window appears…
Saleh
  • 2,657
  • 12
  • 46
  • 73
0
votes
1 answer

Setting entity key in GET action

I'm aware it's a quite simple question but I'm a newbie to C#, ASP.NET MVC3 and ADO.Net Entity Framework and my friend google didn't help me much... So, I have two entities : Post and Comments, with a 1-n relation between them. I would like to post…
David B.
  • 169
  • 3
  • 13
0
votes
1 answer

MVVM and DBContext - how to put it together?

I'm trying to follow the MVVM pattern, however I spent some good time on this issue, googled a lot and checked stackoverflow as well... No working example found so far. Basically, I've a simple application and want to retrieve and write data to SQL…
Nearshore
  • 149
  • 3
  • 15
0
votes
1 answer

How to define the EF connection string only once and re-use it in other projects?

I am building a web application that makes use of Entity Framework. I have moved the Entity Model and generated classes to a separate project, because it will be used by more than one consumer. But when I try to run the application, Entity…
0
votes
1 answer

how to assign one property of viewmodel to another property of another viewmodel for different views?

In a WPF project we are using the MVVM pattern with EDM. I have a screen with one button name as template and a ComboBox. When I click on the template button, it will open a popup screen and select a template from a TreeView. I want the selected…
user768853
  • 269
  • 1
  • 4
  • 16
0
votes
1 answer

Update Statement for Entity Model

Guys I've a EntityModel called mapsModel, which has an entity Type called 'BodyChartNew' For Inserting records I'm using a Handler called InsertMap, In this handler I'm using the code like as follows: using System; using System.Web; public class…
Unknown Coder
  • 1,510
  • 2
  • 28
  • 56
0
votes
2 answers

Putting WPF MVVM and ADO.Net Entity Framework

I am trying to create a WPF project with MVVM and ADO.Net Entity Framework. I do have a few questions though. Do i create the Entity Framework Model in the Model Folder of the MVVM Design? Or do i have to create a new project for each item of the…
New Developer
  • 123
  • 1
  • 10
0
votes
4 answers

System Data Entity. The underlying provider failed on Open

I am creating 2 projects that have the same database (it's an MDF database). The first one is the map editor, and I use XNA 4 and Web Services to connect to it. The second one is the game itself and uses XNA 3.1 and Entity Data Model to connect…
erkape
  • 66
  • 1
  • 11
0
votes
1 answer

DbContext declaration - Framework 4.1 - MVC 3.0

Is it correct to declare a global variable of "DBContext" in a controller and then use it for all database operations? Example: public class ProductController : Controller { private readonly DBContextEntities _db = new DBContextEntities(); …
0
votes
1 answer

ASP.NET.One of database table is not converted to entity data model?

I have 3 tables in my database like this: In my ASP.NET Mvc app. I use entity data model. When I convert database to entity data model TBL_VOTES_ARTICLE table is not converted. Others are converted. Why this is happening? Thanks.
AliRıza Adıyahşi
  • 15,658
  • 24
  • 115
  • 197
1 2 3
33
34