Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SqlMapper.SetTypeMap(
- typeof(SPL_ADV_REPORT),
- new CustomPropertyTypeMap(
- typeof(SPL_ADV_REPORT),
- (type, columnName) =>
- type.GetProperties().FirstOrDefault(prop =>
- prop.GetCustomAttributes(false)
- .OfType<ColumnAttribute>()
- .Any(attr => attr.Name == columnName))));
Add Comment
Please, Sign In to add comment