public SqlMapper.IMemberMap GetMember(string columnName) { foreach (SqlMapper.ITypeMap mapper in _mappers) { try { SqlMapper.IMemberMap result = mapper.GetMember(columnName); if (result != null) { return(result); } } catch (NotImplementedException) { } } return(null); }
public SqlMapper.IMemberMap GetMember(string columnName) { foreach (SqlMapper.ITypeMap mapper in _mappers) { try { SqlMapper.IMemberMap result = mapper.GetMember(columnName); if (result != null) { return(result); } } catch (NotImplementedException) { /* The CustomPropertyTypeMap only supports a no-args * constructor and throws a not implemented exception. * To work around that, catch and ignore. */ } } return(null); }