Questions tagged as 'entity-framework'

0
answers

The database creation wizard does not appear in the service based database and does not create a connection string in the app.config in the entity framework

I'm doing an entity framework virtual course in which the instructor uses visual studio in the 2012 version and during class he creates a web form project and asks to create a database in the service-based-database template when creating a new i...
asked by 19.02.2016 / 14:47
1
answer

C # Entity Framework Invalid object name 'sys.default_constraints'

In my project in C # MVC 5 with Entity Framework next to a SQL Server Server, among a series of classes, I have a class called ctmdMandados.cs: public class ctmdMandados { //cadastro dos mandados recebidos e seus status public int Id {...
asked by 25.02.2016 / 21:40
1
answer

Pagination with EF 7 Asp.net 5 MSQL 2008

Hello, I would like to know if anyone has any solution for paging using EF - Entity Framework for versions prior to MSQL 2012     
asked by 20.02.2016 / 15:53
0
answers

Communication between layers

I have 3 layers, BLL, DAL and Project. In the DAL layer is ENTITY (automatically creates the GETs and SETs) and I want to use the GETs and SETs Because when the project layer arrives the value is "0". Maybe it's a bit confusing to ask the...
asked by 23.02.2016 / 14:29
1
answer

Insert Multiple Entity Framework Items

I have the following method to add customer data public void Alterar(CLIENTE Cliente) { using (Entity.DominioEntity db = new Entity.DominioEntity()) { //Alterar/Adicionar Telefone foreach (var item in Cliente.TELEFONE)...
asked by 13.01.2016 / 17:51
1
answer

Problems with Lambda and DateTime query

Hello, I have the following ActionResult code from my controller below: [HttpPost] [AuthorizedUser] public ActionResult Load(DateTime DataInicial, DateTime DataFinal) { var AcessoDominio = new SmartAdmin.Domain.Acesso(); var Collection...
asked by 12.10.2015 / 16:12
1
answer

Error updating entries in the Entity Framework

I have the following code for mapping my application, but when I try to make a insert it gives the following error.    An error occurred while updating the entries. See the inner exception for details I've already had this error I...
asked by 25.10.2014 / 04:03
0
answers

Pre-Generated Mapping Views

I followed this simple instruction to create Mapping Views : Always the first query in the database takes time because this Mapping is not created? So the first to delay? Right? I created it from the form of the forum, but even...
asked by 03.07.2015 / 02:08
1
answer

How to edit a Boolean field in a list in Asp.Net MVC

Well, I'm developing an application that manages Courses , and I have the following problem. On my Administrator screen I need the Course Name , Student Name fields and the Approved field that is a booleano field. This screen is w...
asked by 22.06.2015 / 23:03
1
answer

MySql with entity framework Code First ID jumping 10

I'm setting up a MySql in Azure for an application I'm working on, however saving my records to identity column is increasing by 10. Would this be an entity-adjustable setting or an adjustment made for all tables directly in the da...
asked by 29.07.2015 / 22:09