Questions about what modules need the enhancer applied?

3 posts, 0 answers
  1. Kendall Bennett
    Kendall Bennett avatar
    80 posts
    Member since:
    Feb 2010

    Posted 13 Jul 2011 Link to this post

    Do I need to make sure the enhancer is run as part of the build process for any code that might directly interact with the entities in my model, or just the library that contains my entities themselves?

    All my entities are inside an ORM dll called DataAccess.ORM.dll, and all the business logic is in another DLL called DataAccess.dll that relies on the ORM dll to get access to the data. So does the enhancer need to be run on both DLL's, or just the ORM dll? What about my web site DLL's which only use the DataAccess.dll library and never directly call into the ORM dll, but they might interact with some of the entities from the ORM dll? Does it also need the enhancer run on it?
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 14 Jul 2011 Link to this post

    Hello Kendall Bennett,

    You need to run the enhancer only for the assembly containing the persistent classes. The other projects that are only using the persistent classes need to reference the OpenAccess assemblies but should not be enhanced.
    The goal of this enhancement is to inject some code in the persistent classes after they are compiled, so that they can be managed by OpenAccess and their changes can be tracked, but without the need of having this code permanently in the cs/vb files.

    All the best,
    Alexander
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Kendall Bennett
    Kendall Bennett avatar
    80 posts
    Member since:
    Feb 2010

    Posted 14 Jul 2011 Link to this post

    Ok thanks!
Back to Top