public T FindEntity <T>(object keyValue) where T : class
 {
     using (var dbConnection = Connection)
     {
         var sql   = string.Format("select * from {0} where {1}=@primarykey", EntityAttribute.GetEntityTable <T>(), EntityAttribute.GetEntityPrimaryKey <T>());
         var param = new { primarykey = keyValue };
         var data  = dbConnection.Query <T>(sql, param);
         return(data.FirstOrDefault());
     }
 }