Questions tagged [entity-model]

The Entity data model (EDM) specifies the conceptual model (CSDL) of the data, using a modelling technique that is itself called Entity Data Model, an extended version of the Entity-Relationship model

The Entity Framework is a set of technologies in ADO.NET that support the development of data-oriented software applications. Architects and developers of data-oriented applications must model the entities, relationships, and logic of the business problems they are solving, and they must also work with the data engines used to store and retrieve the data. The Entity data model (EDM) specifies the conceptual model (CSDL) of the data, using a modelling technique that is itself called Entity Data Model, an extended version of the Entity-Relationship model.

http://en.wikipedia.org/wiki/Entity_Framework#Entity_Data_Model

53 questions
0
votes
3 answers

Deserialize JSON file that has blocks in just one Model (class)

How can I deserialize a JSON file that has blocks in a single class? Is there a way that I can inform what is the parent block for the attribute and the attribute using the JSON annotation in Class? The JSON is below: { "Viagem": { "Id":…
Jairo Franchi
  • 367
  • 1
  • 2
  • 13
0
votes
0 answers

SQL - Make an id start with a number depending on the entity type

In my database I have a User table. I don't represent this in the database but in the implementation of the application I'm working on, there are two types of Users (let's say an A type and a B type). What I want to do is make the id of an A type…
AlexT
  • 589
  • 2
  • 9
  • 23
0
votes
1 answer

How to POST object + array to WebApi .NET/C# controller using AngularJS $http?

My C# model: public class MyModel { public string MyString { get; set; } public int MyInt { get; set; } public List MyList { get; set; } } public class MyList { public string MyListString { get; set; } public int…
Tomo
  • 429
  • 1
  • 10
  • 24
0
votes
0 answers

How to create an Model using ADO.Net Entity Data Model

I am new to ASP C#.Net. I need connect to the database from an ASP.Net application and display the fetched data. The issue is connecting to SQL Server 2000 from an ASP.NET MVC 5 Application. DB Server(MS SQL Server 2000) connection was configured…
R. Shan
  • 111
  • 1
  • 8
0
votes
1 answer

MVC - EF - Multiple Foreign Key Mapping

Apologies if this has already been answered, I cant find an answer to fit my scenario. I have an entity class and a view model. Sample below : Entity: public class Data { [Key, Column(Order = 0)] public int ID { get; set; } …
0
votes
2 answers

How to generate an entity model from a query w/ EntityFrameworkCore

I'm trying to connect an ASP.NET Core web application to an existing, pretty complex database, in read-only mode. The database is much to complex to map its layout to EFC directly, I just access data from it via a set of queries. Those queries are…
0
votes
1 answer

REST URI design

In developing a RESTFul web service, I'm confused in modelling of my request entity. Should all the data required to process the request be a part of the entity or should I move some of the data in to the URL path (given that I've logical hierarchy…
Bazooka
  • 1,428
  • 4
  • 15
  • 24
0
votes
1 answer

Regenerate EntityModel which is DataContract

I have a Data Model generated by Entity Framework using DataBase First approach. This dataModel is located in a WCF Service and is returned by multiple methods to the client. In the client application, the type CreationType is declared in the…
J-R Choiniere
  • 634
  • 5
  • 19
0
votes
1 answer

Simple data manipulation: in Entity Model or Business layer?

I'm working on an asp.net MVC application that implements the traditional Data/ Business/Presentation layered approach. One of my entity models (representing a person) contains address/contact information including a field for "State". My data…
user6479749
0
votes
1 answer

Just one of Entity Framework tables is not updated in EDMX file

I am using VS 2012 and I face a strange problem. When I delete all tables in the .edmx file and then update model from database and add all of tables back, one of my tables is not updated! I was working on my project perfectly. I faced the problem…
0
votes
2 answers

EF6 Entity Data Model Wizard extension gets error after Update Model From Database

I have a custom entity data model extension that implements IModelGenerationExtension. Without getting into specific code, I have come across a situation where I get the "A model generation extension made changes to the model generated from the…
SteveB
  • 233
  • 3
  • 12
0
votes
0 answers

Entity Framework - not updating referenced model

I have a model, 'Person', that references another model, 'Salutation'. public class Person { public int Id { get; set; } public Boolean Active { get; set; } // fk public virtual Salutation Salutation { get; set; } public virtual…
Holland Risley
  • 6,969
  • 9
  • 25
  • 34
0
votes
1 answer

Is there a mySQL connector for Visual Studio 2012?

The image below describes my problem. There is no option for MySQL Server although i have installed the MySQL connector for Visual Studio 2012. I want to use Entity model and i am stacked here. Any idea why is this happening?
0
votes
1 answer

Unable to find the sql server in dropdown list of server names

Actually I am trying to connect to database using entity model .But during this process when I am trying to access my database I am unable to find my server in the list of dropdown during connection.Can anyone help me out ....Thanx in advance..Below…
Bharat Bhushan
  • 1,315
  • 3
  • 18
  • 24
0
votes
1 answer

Return Linq result to a dataset - GetCommand Is Not a Property

I'm trying the first solution mentioned in - http://forums.asp.net/t/1320587.aspx , to return the linq result to a dataset. But I dont get the 'GetCommand' property after 'mdb'. The error says MedianEntities does not contain a definition for…
Ruby
  • 949
  • 7
  • 31
  • 68