How to: temporary stop assembly Enhancement

4 posts, 1 answers
  1. Vitaliy
    Vitaliy avatar
    36 posts
    Member since:
    Dec 2008

    Posted 30 Nov 2010 Link to this post


    I need to analyze my project with a static analyzer from time to time.
    I don't want to see lots of OpeanAccess methods there.
    I'd like to temporary stop my assemblies enhancement.

    If I remove this section from the project file:

    <VisualStudio>
      <UserProperties OpenAccess_EnhancementOutputLevel="1" OpenAccess_UpdateDatabase="False" OpenAccess_Enhancing="True" OpenAccess_ConnectionId="PMSConnection" OpenAccess_ConfigFile="App.config" />
    </VisualStudio>

    It does work.

    Didn't I miss any more elegant method?
    Maybe the OpenAccess_Enhancing="True" is there on some of the configuration forms?

    Thanks
  2. Answer
    TSE
    TSE avatar
    381 posts
    Member since:
    Sep 2008

    Posted 01 Dec 2010 Link to this post

    Hi Vitaliy,

    In the project properties of the project where your persistent classes reside (typically an assembly/library) you should see the property "Enhancing". It can have a value of either "True" or "False"

    Regards

    Henrik
  3. DevCraft banner
  4. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 01 Dec 2010 Link to this post

    Hello Vitaliy,

    Henrik is right, you can turn the enhancing off from the Properties pane when the project is selected in the Solution explorer. There is no need to edit the project file manually.

    Regards,
    Alexander
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
  5. Vitaliy
    Vitaliy avatar
    36 posts
    Member since:
    Dec 2008

    Posted 01 Dec 2010 Link to this post

    Ah, really!

    Thank you, guys
Back to Top