stored procedures - Dapper mapping column with a property in the model having a different name and type -
i have model model: public class member { #region public property public int id { get; set; } public string lastname { get; set; } public string firstname { get; set; } public accountstate accountstate { get; set; } public godfathertype godfathertype { get; set; } } accountstate , godfathertype both 2 eumerates: public enum accountstate { notactivated = 0, activated = 1, desactived = 2, } public enum godfathertype { undefined=0, unknown = 1, correct = 2, } in database have id, lastname, fistname, tinyint accountstateid et smallint godfathertypeid, don't change stored procedure how can map class member database?? actually attributes id, lastname, fistname when execute stored procedure code: public sealed class dbcontext : idbcontext { private bool disposed; private sqlconnection connection; public dbcontext(string connectionstring) { con...