Skip to content

Conversation

@garyhuntddn
Copy link
Contributor

Provision of a TypeMapProvider property to allow lazy creation of type maps only when they are needed

The Func simply returns a new DefaultTypeMap instance by default but you can replace the Func with something more useful - for example I am using a custom class that implements ITypeMap that uses the DataAnnotations attributes for column names.

@NickCraver
Copy link
Member

+1

@NickCraver NickCraver self-assigned this Oct 14, 2015
@NickCraver
Copy link
Member

Note: need to address the IL issues.

NickCraver added a commit that referenced this pull request Oct 15, 2015
Simple Func to allow provision of TypeMaps automatically
@NickCraver NickCraver merged commit e3e4492 into DapperLib:master Oct 15, 2015
@NickCraver
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants