using System.Text; using System.Linq; using System.Collections.Generic; using System; namespace DapperExtensions.Mapper { /// /// Automatically maps an entity to a table using a combination of reflection and naming conventions for keys. /// public class AutoClassMapper : ClassMapper where T : class { public AutoClassMapper() { Type type = typeof(T); Table(type.Name); AutoMap(); } } }