Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.24 KB

File metadata and controls

39 lines (28 loc) · 1.24 KB

NuGet Version Quality Gate Code Coverage Azure Pipelines Status

qckdev.Data.Dapper

Provides a default set of tools for Dapper library.

using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entities
{
    sealed class Test
    {

        [Column("TestIdColumn")]
        public Guid TestId { get; set; }
        [Column("NameColumn")]
        public string Name { get; set; }
        [Column("FactorColumn")]
        public int Factor { get; set; }

    }
}
using Dapper;
using qckdev.Data.Dapper;


SqlMapper.AddTypeHandler(new TypeHandler.GuidTypeHandler());
SqlMapperMore.SetMapper<Entities.Test>();