Questions tagged as 'entity-framework'

1
answer

Error inserting into the BD using EF

I have this model generated by EF public partial class Ventas { public Ventas() { this.Caja = new HashSet<Caja>(); this.VentasLinias = new HashSet<VentasLinias>(); } public string weblogin { get; s...
asked by 27.05.2017 / 17:51
1
answer

Map an object by JSON

I am mapping an object from my controller, I sent it through the GET method by JSON. The object generates it well, check that it brings data. The communication is correct, it works well if I send an empty object or a text, the problem is when I...
asked by 16.05.2017 / 14:30
1
answer

Error saving EF ASP.NET image

Currently I have the following structure in my model for an image field of my bd [Table("especialidad")] public class clsEspecialidad { private int iId_Especialidad; [Key] [Column("id_especialidad")] [Display(Name = "Id Espe...
asked by 11.05.2017 / 21:18
0
answers

The provided anti-forgery token was meant for a different claims-based user than the current user

Very good. I have a problem with the Anti-Forgery with a somewhat particular case: 1.- I enter the password incorrectly. 2.- I correctly introduce username and password. 3.- I go back in the history. 4.- Enter what you enter gives me the erro...
asked by 28.04.2017 / 11:13
1
answer

How do I update the first entity framework code from the database?

It turns out that I started to make a database model from code first entity framework and I added a table in the database with what I want to bring that change to code first. I know that I can create the class in code first and with the migratio...
asked by 11.04.2017 / 18:45
1
answer

create model in BD using CodeFirst approach

Product of a problem with the database, when making an update, the definitions of the tables were lost. As I still have the model in the application (context and entities), it occurred to me, using the CodeFirst approach with this model, but...
asked by 30.03.2017 / 03:40
1
answer

The data reader returned by the storage data provider does not have enough columns for the requested query

Greetings. In Entity Framework, when I try to make an insert, it sends me the following message:    The data reader returned by the storage data provider does not have enough columns for the requested query. However, the registration i...
asked by 02.03.2017 / 20:00
2
answers

Inheritance in entity framework by hierarchy

I have a problem that I can not solve days ago, I am working with enttity framework codefirst in vs2015 with c #, I have a hierarchy, summarizing: Person -IDPersona -first name -last name User -IDPersona -user -password Operator -IDPers...
asked by 02.02.2017 / 13:52
0
answers

The service does not respond after a while in WCF + EntityFramwork

I have the following service: [OperationContract] [WebGet(UriTemplate = "Banks", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json)] List<BankModel> GetBanks(); public List<BankModel> GetBank...
asked by 10.01.2017 / 22:06
0
answers

Oracle Entity Framework - map tables of different schemes

I have several schemes (ESQ1, ESQ2, ESQ3, etc) and each scheme is for a different context, but there are cases in which I need to access tables of different schemes, and at the time of mapping the tables I can only see the tables of the user wit...
asked by 05.01.2017 / 14:11