Page 1 of 1

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

Posted: Wed 08 Nov 2017 14:42
by mars
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

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

Posted: Fri 10 Nov 2017 17:13
by Shalex
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