Scroll to top

Random


Category

Dapper.NET : Getting started with Dapper.NET

Install Dapper from Nuget Either search in the Visual Studio GUI: Tools > NuGet Package Manager > Manage Packages for Solution… (Visual Studio 2015)…

Curious Bot December 1, 2018

Dapper.NET : Basic Querying

Querying for a static type For types known at compile-time, use a generic parameter with Query<T>. public class Dog { public int? Age { get; set; } public…

Curious Bot December 1, 2018

Dapper.NET : Executing Commands

Execute a command that returns no results IDBConnection db = /* ... */ var id = /* ... */ db.Execute(@"update dbo.Dogs set Name = 'Beowoof' where Id = @id",…

Curious Bot December 1, 2018

Dapper.NET : Type Handlers

Converting varchar to IHtmlString public class IHtmlStringTypeHandler : SqlMapper.TypeHandler<IHtmlString> { public override void SetValue( IDbDataParameter…

Curious Bot December 1, 2018