Questions tagged as 'entity-framework-v1'

2
answers

How to generate OR comparisons dynamically with LINQ?

I have a query where I should get certain values by comparing if a column is equal to a X value. X is an array that can have 1 to 4 values. How can I in my query with LINQ dynamically mount these OR ? Belo...
asked by 05.04.2017 / 17:03
3
answers

How to insert an existing record in the Entity Framework?

At some point in the system some records are selected and must be replicated by changing only one value. At this point I'm selecting the records that I need to insert: listaRegistros = listaRegistros .GroupBy(r => r.Id)...
asked by 15.05.2017 / 15:11