Questions tagged as 'entity-framework'

1
answer

SQL Azure database refusing connection

I'm having trouble connecting the SQL Azure database through a web application published at this address: link This is the connection string: <add name="Entities" connectionString="metadata=res://*/Context.ControleHorasContext.csdl|...
asked by 14.01.2017 / 12:30
1
answer

Doubt about implementing a Dependency Injection in C # using Ninject

I have a C # project with Windows Forms. I have a question about how to do an implementation between two layers of my application: Application and WindowsForms . I need to load a DataGridView with a list of "PessoaTip...
asked by 14.02.2017 / 23:31
1
answer

Fluent API Modeling with Reference Table

I would like to know how to perform the modeling of a particular entity, where its reference value belongs to another table. This reference value would be a domain table that has its ID's for credit cards, since my user can register that their s...
asked by 20.11.2016 / 00:09
1
answer

Entity Framework does not convert INTEGER from Firebird to long from C #

I'm doing some testing with Entity Framework by mapping and migrating a database from a legacy system. Scenery Where I have a table similar to this: TESTE -------------------------------------- ID INTEGER NOT NULL, NOME VARCHAR(...
asked by 13.09.2016 / 17:01
1
answer

How to set the generator (from firebird) to an Entity framework 6 model field?

For example: I have the following table: TABLE_EXAMPLO ----------- ID NAME And the following Generator: TABLE_EXAMPLO_GEN How would I map the entity so that the Entity Framework can call the generator for new record...
asked by 12.09.2016 / 20:36
1
answer

Relationship between entities returns null

I'm having trouble checking a parameter in a relationship between the Historian and Login entities. public class Historico { public int ID { get; set; } public virtual Login login{ get; set; } public DateTime inicio { get; set; }...
asked by 26.10.2016 / 04:51
3
answers

C # hangfire stopping

I'm using hangfire with IIS in an ASP.NET MVC application with C #. I have a Task running every 5 minutes, however the application is stopping. This occurs in a variable period of time, sometimes it runs for 3 hours and sometimes for less tim...
asked by 15.07.2016 / 15:04
1
answer

When instantiating the ICollection

I'm reviewing some programming approaches and fall into a dilemma as to where we should instantiate our navigation properties from EF ICollection . Many cases I see that the personnel instantiates them in the constructor, would t...
asked by 26.07.2016 / 04:09
1
answer

Error updating template through database [closed]

Hello, deletei in sql server a table, in visual studio 2015 I updated the "update model from database" option, updated my change. But when saving EDMX all the entities (tables) of the EDMX disappeared, as if it had deleted all of them. In Tea...
asked by 20.07.2016 / 14:50
1
answer

EF Mapping for Variable Name Tables

I have several tables with the same structure, but with different names. Eg: CREATE TABLE 'log_historico_25072016' ( 'lhis_id' INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, 'lhis_cvei_id' INT(10) UNSIGNED NOT NULL, 'lhis_sequencia' SMALLINT(5)...
asked by 26.07.2016 / 02:27