Questions tagged as 'entity-framework'

3
answers

How to point the entity framework to another bank?

Hello, My Entity Framework always points to my local bank ... I have already tried to change the connection string passing the data from a database that is on another server and nothing happens it keeps pointing location even if I comment the...
asked by 10.12.2015 / 19:39
1
answer

Working with a high processing load on a table

What are possible database modeling strategies in a scenario where you have a specific table that receives a gigantic load of statements of insert , update and delete , in addition to queries with high data processing,...
asked by 15.01.2016 / 20:17
1
answer

Creating Models that derive IdentityUser or use the AspNetUsers table

I am developing management software for my fitness club. I have students, teachers and system users. I installed identity. I created a model named Aluno that inherits from IdentityUser public class Aluno : IdentityUs...
asked by 31.08.2016 / 18:10
1
answer

Doubt when setting entity relationship

In one scenario, I have an address registration entity: public class Endereco { [Key] public int EnderecoId { get; set; } public string TipoLogradouro { get; set; } public string Logradouro { get; set; }...
asked by 04.12.2015 / 20:54
1
answer

Entity can not be referenced by multiple instances

I'm trying to save the data in this method here ... public ActionResult AtualizaInicioAtividade(Atividade atividadePre, Atividade atividadePrincipal) { try { using (CPMDatabaseEntities db = new CPMDatabaseEntiti...
asked by 24.10.2015 / 21:22
1
answer

Name editing is confirmed in the database but does not occur in the list

I am editing a database column and so far everything is fine, but when I load the table that contains this column using Include, it simply does not update the " Driver ", ID in the relationship but in the listing continues the name of the old re...
asked by 10.06.2015 / 22:07
1
answer

Problem when storing decimal values in SQL Server

I have a decimal field (18, 3) and in the application I use a JavaScript plugin to format the values entered, so I pass the value so pro SQL Server 45,000,000,000, when I look at what was registered was this 45000000000.000, or I mean, he put 3...
asked by 26.11.2014 / 17:29
1
answer

Complex mapping Entity Framework

I'm creating a class structure that looks like the following: Department -Service One department provides various types of service. A specific service can only be provided by one department, not by many. A department can request service...
asked by 26.06.2015 / 00:26
1
answer

Select [with added functions] group by in Lambda

How do I convert the following select SELECT TOP (60) COUNT(*) AS QTD, SUM(Duration) AS Total, AVG(Duration) AS Media, MIN(Duration) AS Menor, LEFT(TextData, 80) AS TextData FROM Traces WITH (nolock) WHERE (StartTime >= DATE...
asked by 20.06.2014 / 21:23
1
answer

Map associative tables in Entity

This has already happened. When I use an associative table in Entity, these tables generally do not have PK. When this occurs, I can not map them. How can I map this type of table?     
asked by 15.08.2014 / 14:46