I use VS2012
and SQL Server 2012
I add Dapper
to my VS2012
like this
I have one class like this :
public class DomainClass
{
public SexEnum sex { get; set; }
public int Id { get; set; }
public string Name { get; set; }
}
enum SexEnum
{
Men = 0, Women = 1
}
I have a table ATest
and i have a query like this :
Select * From ATest
How i can execute this query and convert my result in to IList of DomainClass
with Dapper ?