Questions tagged as 'dapper'

1
answer

Dapper Framework error: Could not load file or assembly 'Dapper, A strongly-named assembly is required

Hello, I use Dapper Framework to perform my SQL queries in C # Windows Forms, and I recently started a new project, and I came across this error:    Could not load file or assembly 'Dapper, Version = 1.50.2.0, Culture = neutral, PublicKeyT...
asked by 11.01.2017 / 23:07
1
answer

Mult Mapping Dapper [duplicate]

I'm having problems with dapper's Mult Mapping, when I try to execute the following query it is not mapping the ids of the objects, the select is this: var sql = @" SELECT ofi.id_oficina, ofi.codigo,...
asked by 27.01.2017 / 13:10
0
answers

Generic Repository with Dapper

I'm doing a test application where I want to see the performance and learn how to create a generic repository with Dapper, well I have some experience when I created a generic repository, but using EF6, trying to use the same logic made the cons...
asked by 13.12.2018 / 21:34
1
answer

How to pass a list of integers as dapper parameters?

I am trying to pass a parameter that is a list of integers, this should be appended to query in the IN clause of the sql server, but I'm not sure how to use it with DAPPER . I tried to do it this way. var adesao = Adesao.Repositorio.Obter(...
asked by 31.07.2017 / 15:49
1
answer

Control time to return the timeout

See the scenario: I have a procedure that running right through SQL takes about 50 seconds to return the data. However, when this same procedure is executed via the system, from timeout in 15s. My question is, would it be possib...
asked by 20.06.2018 / 19:09
1
answer

What is the purpose of ConcurrencyStamp and SecurityStamp in ASP.NET Identity?

The summary of both properties in the entity IdentityUser are in English: ConcurrencyStamp: A random value that should change whenever the user is persisted to the store. Translating would be something more or less like this:...
asked by 13.05.2018 / 07:14
1
answer

Problem when changing entity with E.F and Dapper [closed]

I have a Dapper query, where I search for an entity: var fatura = ObterPorClientedEDataVencimento(cobranca.ClienteId, cobranca.DataCobranca); The Method and properties of my entity are in this Gist , I put it there just so the questio...
asked by 22.03.2018 / 12:50
1
answer

Error executing a query with npgsql + dapper in postgresql

I can get my "user" object that has a "Login and Password" inside it, and when I run the function through my ORM, I get the following error message:    {"42883: operator does not exist: @ character varying"}. Could anyone tell me what mig...
asked by 30.08.2017 / 07:53
1
answer

ASP NET MVC 5 Dapper with SQL Server?

I'm creating an application with ASP.NET MVC5 , DAPPER , C# E SQL SERVER . The problem is that in the data listing, you are bringing the empty fields, except the ID field, which comes to zero (0). If anyone kno...
asked by 06.11.2016 / 18:50
1
answer

How to use Generic Method with Dapper?

I have 2 methods of a generic repository public TEntity ObterPorId(int id) { return Db.Set<TEntity>().Find(); } public IEnumerable<TEntity> ObterTodos() { return Db.Set<TEntity>().ToList(); } But I want to use Dap...
asked by 22.03.2016 / 03:44