Skip to content

Simple Func to allow provision of TypeMaps automatically - #110

Merged
NickCraver merged 1 commit into
DapperLib:masterfrom
garyhuntddn:master
Oct 15, 2015
Merged

Simple Func to allow provision of TypeMaps automatically#110
NickCraver merged 1 commit into
DapperLib:masterfrom
garyhuntddn:master

Conversation

@garyhuntddn

Copy link
Copy Markdown
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
Copy Markdown
Member

+1

@NickCraver NickCraver self-assigned this Oct 14, 2015
@NickCraver

Copy link
Copy Markdown
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
Copy Markdown
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