dtretyakov/WindowsAzure

Add Fluent mappings for POCO

Closed this issue · 3 comments

To archive Persistence Ignorance for POCO we can use Fluent mappings like that: https://github.com/jagregory/fluent-nhibernate/wiki/Fluent-mapping
It'll be additional mapping way after the attribute-based mapping.

Hello Dmitry,

I did an attempt to implement the fluent mappings for POCO, I add some tests maybe it needs more coverage as I'm new to the project I can't look forward.

If you have the chance to take a look on the code, it can be a contribution to it.
https://github.com/conube/WindowsAzure/tree/fluent-mapping

Best regards,

Gabriel Marquez

Hello Gabriel,

It's looks great! Could you send a pull request and we will be able to cover code by more tests if it will be necessary.

Just one moment - it seems that something goes wrong with line endings. Could you use auto in the line endings and re-normalize affected files like that:
https://help.github.com/articles/dealing-with-line-endings

It may be seen in the following commit:
gblmarquez@d77898c

Thanks for contribution.

Hello @dtretyakov,

Sorry for the delay, just created the PR.

I hope it's OK the line-endings now, if not let me know.

Thanks,

Gabriel