Most voted "fluent-api" questions
Entity Framework Fluent API, also known only as Fluent API, is an entity configuration feature present in the Entity Framework, used to define characteristics of an entity, its properties or the relationship between entities.
Learn more…63 questions
Sort by count of
-
0
votes1
answer113
viewsFluent Api entering undesirable records
I have the following classes: Estado.Cs public class Estado { public Int32 EstadoId { get; set; } public Int32 CodigoEstado { get; set; } public String Sigla { get; set; } public String Nome { get;…
-
0
votes1
answer132
viewsThe Member with Identity '' does not exist in the Metadata Collection?
I couldn’t find how to solve this problem between my base and my mapping using Fluent API. I have a Fluent API mapping of a certain pre-existing table in the client database, but this table has a…
-
0
votes1
answer492
viewsComposite key with EF Fluentapi
I’m having trouble defining a relationship with composite key in Fluentapi. I have the following entities: Product, Personal, and Stock. I need in stock table I have a product FK (Produtoid) and a…
-
0
votes2
answers107
viewsCode-First Fluent API with complex classes in ASP.NET Core 2.1
Error while performing the Add-Migration when using Complextype classes. public class Cliente : EntityBase { public Cliente() { #region Create HashSet Properties Lists Dependences Titulares = new…
c# asp.net asp.net-core fluent-api entity-framework-coreasked 6 years, 3 months ago Nicola Bogar 123 -
0
votes1
answer148
viewsFluent API Zero-to-one Relationship 0-1 - Bringing Results From Another Relationship
I’m trying to make the relationship between my Cliente and the CieloToken, tried with Fluent API and Data Annotation, I mixed them together and it didn’t work. In fact it executes, but even if the…
-
0
votes1
answer392
viewsClass mapping with Fluentapi and Entityframework C#
Table Parents, State, City; A country can have several states and a state can have only one country; State->Parents : 1:N A city can have only one state and one state can have several cities.…
-
0
votes1
answer59
viewsDependencies with Entityframework C#
My question is how to use the state-class include for parents, because the city-class has no connection with parents. How to perform this sql by loading the dependencies? private void…
-
0
votes1
answer218
viewsDeclare Entity Framework Relationship one for many
I have two classes: Person public class Pessoa { public int Codigo { get; set; } public string Nome { get; set; } .... public virtual ICollection<Endereco> Endereco { get; set; } } Address…
-
0
votes1
answer218
viewsTwo Foreign key in the same EF column
I have a question, I am programming with . NET MVC using the Entity Framework. At the moment I have: class Produto { public int ProdutoId { get; set; } public string Nome { get; set; } public string…
-
0
votes1
answer61
viewsFluent api - Map table to another table with the same key
I need to know how to map in the Fluent API the following item public class ImportacaoHeader { public string IdImportacao { get; set; } public DateTime dataInicio { get; set; } } public class…
-
0
votes0
answers851
viewsIDENTITY_INSERT is set to OFF - Entity Framework Core
I’m working on an application with Asp.net-core + Entity-framework-core and with mapping and configuration via Fluent-api. When I go into the bank I get the error that the IDENTITY_INSERT is defined…
sql-server asp.net-core fluent-api entity-framework-coreasked 6 years, 3 months ago Rafael Arthur 35 -
0
votes0
answers24
viewsProblems in Mapping with Fluent
I already had a resale table, where I had to add a new field. This new field is a FK of a new table that I created. Then we have: Reseller(Reseller) which receives a FK Discount. In Reseller this…
-
-1
votes1
answer26
viewsFluent API Modulated System
Good afternoon! I am developing a modular system. Where in this system I have the registration module, the sales module, financial ... The structure of my project is like this. I have a solution, in…
fluent-apiasked 5 years, 8 months ago Mario Antonio Andrade Pagnozzi 1