Mapping char(8) to string property with Dapper
问题 I have the following table, abridged: CREATE TABLE [dbo].[TERMINAL] ( [TERM_CODEID] SMALLINT NOT NULL, [TERM_ACTIVE] SMALLINT NOT NULL, [TERM_NAME] VARCHAR (30) NOT NULL, [TERM_SLA] CHAR (8) NOT NULL, [TERM_SERIAL] VARCHAR (8) NULL, [TERM_VERSION] VARCHAR (8) NULL, [TERM_STATUS] INT NULL, ) When I try the following Dapper code - and I'm a complete Dapper novice, found it yesterday - I get an error: using (var conn = new SqlConnection("data source=ourServer; initial catalog=ourDb;user id=sa