EF Code First Wizard. Is it possible to extract Oracle comments?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
mars
Posts: 17
Joined: Tue 14 Jul 2009 13:56

EF Code First Wizard. Is it possible to extract Oracle comments?

Post by mars » Wed 08 Nov 2017 14:42

Hello

I'm trying to create Code First EF model based on existing database (ADO.NET EDM Wizard).
It would be great to see Oracle comments for database's columns and fields in result C# code.

for example, according to this

Code: Select all

create table my_entity (
  ...
  entity_field varchar2(12)
) 
/
comment on table my_entity is 'my entity table'
/
comment on column my_entity.entity_field is 'some entity field'
/
I'd like to get class with standard C# comments

Code: Select all

    /// <summary>
    /// my entity table
    /// </summary>
    [Table("MY_ENTITY")]
    public partial class MY_ENTITY
    {
        ....
          
        /// <summary>
        /// some entity field
        /// </summary>         
        public string ENTITY_FIELD { get; set; }
    }
Is is possible?

Thank you.
Sergey

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

Re: EF Code First Wizard. Is it possible to extract Oracle comments?

Post by Shalex » Fri 10 Nov 2017 17:13

We recommend you to use Entity Developer (the Devart Entity Model item, *.edml) instead of EDM Designer (the ADO.NET Entity Data Model item, *.edmx) because it is adjusted for working with Oracle and has an advanced functionality: http://www.devart.com/entitydeveloper/ed-vs-edm.html. Additionally, Entity Developer extracts Oracle comments.

JIC: Entity Developer is shipped with dotConnect for Oracle Professional

Post Reply