Questions tagged as 'entity-framework-6'

1
answer

Method migrations entity framework

Usually when working with the entity framework, we use the add-migration migrationName update-database I would like to make this a method, so when you call it, it runs. Reason: I am implementing multitenancy in my bank, I will separate...
asked by 12.07.2014 / 02:06
2
answers

Error adding value sum into the footer of a gridview

I'm trying to include in the footer of a gridview the sum of two columns, but I'm having trouble creating the method that performs this function. I have already set the ShowFooter property to true , now I have to implement...
asked by 16.06.2014 / 04:54
1
answer

Problem to create the database using EntityFramework with configuration by DbConfiguration

I'm studying the EntityFramework, writing two contexts to understand how to deal with it when my domain contains many entity classes . That would then be represented by many DbSet's in context, making their startup "heavy." I imagine this is th...
asked by 24.06.2014 / 04:30
0
answers

Error to map in EntityFramework

Good, I'm trying to map a database using the EntityFramework-Reverse-POCO-Code -First-Generator and one of my views has the following mapping: public VIEW_CODE_NAV_CustomerLedgerEntryMapping(string schema) { ToTable("VIEW_CODE_NAV_Cus...
asked by 06.12.2018 / 17:01
0
answers

Code Based Configuration - EF6

I've been trying to implement a connection to an Oracle 11g database using the EF6 code-based configuration for a few days, but nothing I've done so far seems to work. Currently this is my implementation: App.Config<?xmlversion="1.0"...
asked by 12.09.2018 / 16:56
0
answers

Query on table name by Reflection

I'm trying to make a query in the table, that its name will come by method scope, but it does not allow me to use Select(); or Where(); System.Type referenceTableType = System.Type.GetType("MeuProjeto.Model." + typeRequest.Refer...
asked by 17.09.2018 / 14:27
0
answers

Is it possible to make a related Entity possible to be displayed with Odata Expand (WebApi)?

Hello, I have a question regarding the following situation: I have an Entity that I defined in my model as TaskFreq public partial class TarefaFreq { [Key] public int ID { get; set; } public string Name { get; set; } } I created...
asked by 26.07.2018 / 20:12
0
answers

Id jumping 1000 Sql server 2014 (localDB)

In my application a few times when I'm going to add some data to the database, the ID jumps to 1000 units. I found some solutions, but they do not work for me because I use EF6 with code-first and my intention is to install the application wi...
asked by 27.08.2018 / 16:35
0
answers

How to solve Stackoverflow exception that occurs in Entity Mapping for Model?

In my application a Team has several users and a User belongs only to a Team (1: N), so I have the following entities: public class Equipe{ public Guid EquipeId {get; set;} public string Nome {get; set;} public virtual ICollect...
asked by 18.05.2018 / 00:51
1
answer

How to save Console Application data using EntityFramework

I made a console application using Entity Framework , but I'm having a hard time implementing the methods of my repository class that inherits from an interface, I've made my interface classes and my concrete repository class like this:...
asked by 20.02.2018 / 21:08