zzz projects Dapper Tutorial
Getting Started Documentation 3rd Party Libraries Knowledge Base Online Examples
  • Getting Started
  • Documentation
  • 3rd Party Libraries
  • Knowledge Base
  • Online Examples
  •   Download  

Dapper Tutorial - Knowledge Base (KB)

6 results in tag: asp.net-mvc

How in ASP.NET Web API and Dapper, do you send an array of arguments?

Creating a Web API through which array of id is passed and returns the result from the OracleDB....public class SampleController : ApiController { public string Getdetails([FromUri] int []id) { string inconditons = ""; for (int i = ...
asp.net asp.net-mvc asp.net-web-api dapper
asked by trx

Why I need to set the `SplitOn` parameter when I'm using a multi-mapping method with a key different than my id?

I keep on getting this error. The place where it's throwing the error is:... var projectManagerList = gridReader.Read<ProjectResources, Employee, ProjectResources>((pr, e) => { pr.Employee = e; ...
asp.net-mvc dapper
asked by BYG

Using Visual Studio and Dapper, how do I use a connection string?

I am trying to get a Connection String set up in my .Net Core application but i keep getting the error:...System.NullReferenceException: 'Object reference not set to an instance of an object.'...I have tried adding the following to ...appsettings.json...:...
.net-core asp.net asp.net-mvc c# dapper
asked by JoeG

In a single query result using Dapper, how do I get the DapperRow?

I've done the following SQL query:...SELECT SUM(SI.UnitaryValue) as Amount FROM Services as S INNER JOIN ServicesItems as SI ON S.ServiceId = SI.ServiceId WHERE S.ServiceId = @ID" ...In the query: Services has a collection of Service Items. Then...
asp.net-mvc c# dapper
asked by Paulo Maurício

How can I retrieve the last identity value inserted with Dapper?

I'm querying DB Oracle and would like to return the entered id. I use a sequence that automatically generates the next id for me. I've already tried this, but I have an "ORA-00933 sql command terminated incorrectly" exception. What is the error? Thank you...
asp.net-mvc c# dapper oracle
asked by Elmoro

In Dapper, what should be injected? IDbConnection versus IDbConnectionFactory

TLDR:... What are the reasons for injecting a connection factory vs the IDbConnection itself....I'm currently using Autofac in .net MVC to inject an instance of IDbConnection into my repository classes to use with Dapper like so:...Autofac setup:...builde...
asp.net-mvc autofac c# dapper
asked by GisleK

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!