Questions tagged as 'dapper'

1
answer

Return int on a select using Dapper.

I need to return the idCity. If it does not find in one table, it is mandatory in the other. Return is null. My Query public const string sql = @"DECLARE @retorno AS INT = 0; SELECT @retorno = id...
asked by 30.11.2017 / 13:56
0
answers

Specifications and Dapper [closed]

Hello, does anyone know any extension of dapper that makes it possible to use Specifications (Expression<Func<T, bool>>) in C #?     
asked by 16.05.2017 / 21:46
0
answers

How to list data with inner join with mvc 5, c #, dapper, and sql server?

I have the following difficulties: 1 - View data from a select with inner join. The fields in the other tables do not all appear in the select, and those that appear have a value of zero (0). 2 - Write the data in the database. Even if you...
asked by 19.11.2016 / 01:13
1
answer

How to map return of a Value Object with Dapper?

Hello! I have a question regarding the return of an object with an already-filled 'Value Object', for example: I have the User.cs class public class User { public Guid UserId { get; set; } public string Name { get; set; } pub...
asked by 11.04.2018 / 18:00
1
answer

Controlling Dapper transaction with SimpleCrud / Error: Enlisting in Ambient transactions is not supported

Good morning everyone, alright? I need to control the Dapper transaction using SimpleCrud. I have an application in asp.net core using Injection Dependency. I'll post parts of the code only (removing ViewModel to Model conversions and vali...
asked by 01.11.2018 / 14:29
1
answer

Glimpse ASP.Net running with Dapper

I just saw content I was studying about performance and optimization in ASP.Net applications. They presented me with a diagnostic tool called Glimpse . The tool's operation is perfect, it measures ajax requests execution times, SQL quer...
asked by 24.10.2018 / 15:54
0
answers

Opinion on architecture using Dapper

In a project, I have some standard methods, for example: //Execute Return List DapperORM.RetornoList<EmployeeModel> <= public static IEnumerable<T> RetornoList<T>(string procedureName, DynamicParameters param = nul...
asked by 20.09.2018 / 16:39
0
answers

Dapper in rationing 1-1 where in class does not have the foreign key

When working with ORM it is common (will it be mandatory?) to create the model classes as if they were a mirror of the bank tables. But I have a different case and wanted to know if dapper works this way. In the bank I have the tables. Pro...
asked by 23.08.2018 / 22:23
0
answers

Problems with Inner Join in Dapper

I have the following problem when I inner join in 3 in> Dapper does not bring me all the columns of the 3 tables, but only the parent table of my inner join (ie the first table in the query). My classes public class ItemQuesti...
asked by 11.08.2018 / 01:16
1
answer

SQLite in memory with dapper generates non-existent table error

I have the following code for creating the table: string query = @"CREATE TABLE GVP_USERS_TAGS( ID integer NOT NULL PRIMARY KEY AUTOINCREMENT, DATEINS datetime NOT NULL DEFAUL...
asked by 18.05.2018 / 22:35