tmenier / AsyncPoco

A long-"awaited" fully asynchronous PetaPoco fork
Other
127 stars 33 forks source link

Column attribute being ignored on Pocos #37

Closed jonast92 closed 6 years ago

jonast92 commented 6 years ago

I'm attempting to insert a Poco, identifying the table columns within the ColumAttribute as I've normally done using the normal PetaPoco but for some reason it's ignoring the attribute altogether, only using the poco property as the identifier. I've expressed the issue/question regarding it in the following SO question: https://stackoverflow.com/questions/47509158/unable-to-use-the-column-attribute-to-associate-properties-to-the-column-names-u

If this is a feature, but not a bug, I'm sorry for posting the issue but I'd love to hear a workaround for this if it exists. Cheers.

jonast92 commented 6 years ago

Holy muffins. I've found the issue.

Apparantly I still had a reference to the classic PetaPoco namespace and was thus using the ColumnAttribute defined in that namespace, instead of the one defined in AsyncPoco.

Fixing the references solved this issue!