Page 1 of 1
Code First Comments from Code to DB
Posted: Mon 22 May 2017 09:05
by Flo
Hello together,
if i use code first in ef, exist a way to automatic add the xml comments of a property to the database column-comments (oracle)?
thx
Re: Code First Comments from Code to DB
Posted: Tue 23 May 2017 14:18
by Shalex
There is no way to set comments in fluent mapping to migrate them to database in runtime.
Re: Code First Comments from Code to DB
Posted: Wed 24 May 2017 08:43
by Flo
Thanks for responding,
I maked a post in the user-voice (
https://devart.uservoice.com/forums/105 ... code-to-db). I think its not a problem to parse the xml and to insert these
values with sql. A pity thats not out of the box possbible.
Flo
Re: Code First Comments from Code to DB
Posted: Fri 26 May 2017 11:12
by Shalex
Thank you for your vote.
JIC: this is a complicated task, because the XML documentation comments are not metadata; they are not included in the compiled assembly and therefore they are not accessible through reflection.