Most voted "dapper" questions
Dapper is a class database object mapper for . NET which basically acts as an extension of the Idbconnection interface.
Learn more…58 questions
Sort by count of
-
0
votes1
answer75
viewsHow to map the returns of a Store Procedure to the properties of a class?
Viewmodel public class ClienteResult { [Display(Name ="intParc_Cod")] public int ClienteId { get; set; } public string Nome { get; set; } public string CPF { get; set; } public decimal Saldo { get;…
-
0
votes1
answer184
viewsError passing parameter to Sqlcommand by parameterizing table
I’m trying to pass parameter in mine select and this bursting the exception: It is necessary to declare the table variable "@p_tabela". using (SqlConnection conn = new…
-
0
votes1
answer182
views'System.Data.Sqlclient.Sqlconnection' does not contain a Definition for 'Query'
I wrote a C# method to make a "switch" between different database types in my application. Where the problem is that each database type makes use of a different library (SQL => Sqlconnection and…
-
0
votes1
answer30
viewsError loading partial view (aspnet core with Dapper)
I am new with the use of Aspnet Core 3.0 with Dapper and I am having difficulties to load a partial view in the main view. I want to upload client contacts to a list: Client (view) and Contacts…
-
0
votes0
answers26
viewsNpgsql.Postgresexception: 53300: remaining Connection slots are reserved for non-replication superuser Connections
I am using Dotnet Core and C# to fetch data from an API and saving to a Postgresql database. And arrives at a certain part of the process in which this error appears: Exception has occurred:…
-
0
votes1
answer12
viewsProblems implementing JWT authentication with NET Core 5
Hello, I’m having trouble implementing JWT in my API, I researched and looked at several tutorials on the subject and noticed that they use Identity, but I use Dapper to be able to check if the user…
-
-1
votes1
answer340
viewsError passing parameter to proc with Dapper
I got it inside a foreach: parameter.Add("@PROD", item.CDProduto); parameter.Add("@Filial", item.filial); parameter.Add("@Cod_Oper", cod_oper); var result =…
-
-2
votes1
answer157
viewsHow to Configure a string Connection
I am wanting to connect to the database but my string Connection is not starting. Error: https://prnt.sc/ngeqde Class Startup: var connectionString =…