Code First Comments from Code to DB

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Flo
Posts: 8
Joined: Mon 22 May 2017 08:49

Code First Comments from Code to DB

Post by Flo » Mon 22 May 2017 09:05

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
Last edited by Flo on Wed 24 May 2017 08:38, edited 1 time in total.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Code First Comments from Code to DB

Post by Shalex » Tue 23 May 2017 14:18

There is no way to set comments in fluent mapping to migrate them to database in runtime.

Flo
Posts: 8
Joined: Mon 22 May 2017 08:49

Re: Code First Comments from Code to DB

Post by Flo » Wed 24 May 2017 08:43

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Code First Comments from Code to DB

Post by Shalex » Fri 26 May 2017 11:12

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.

Post Reply