Entity Properties Window in Designer

4 posts, 0 answers
  1. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 25 Jul 2011 Link to this post

    I've been looking for documentation for the entity properties window such as Cache Policy, Concurrency Member, Concurrency Mode, Identity Mechanism, Update Schema etc. Some have a default or AUTO setting and wanted to understand what the defaults are and what some of these properties do. If there is a reference to the Property properties window that would be handy as well although these are more self explanatory. I have tried searching the documentation but haven't found the results I was after.
  2. Pencho
    Admin
    Pencho avatar
    22 posts

    Posted 26 Jul 2011 Link to this post

    Hello Axe,

    The ConcurrencyMember, ConcurrencyMode properties allows you to control concurrency conflicts. You may find more information here.
    The IdentityMechanism property allows you to define the key generator used for the primary key column in the backend. That property is mostly useful in model first scenarios, when you create the conceptual model first and then create the storage model (the database). You could find more information about Model-First development here. There are four possible IdentityMechanism values:
    - DatabaseServerCalculated - the primary key column in the database is auto-incremental.
    - Default - specifies that the default value for the key generator will be used by the runtime.
    - Guid - defines the 'Guid' key generator. Your identity field will require Guid values.
    - High-Low (default at the moment)- internal identity will be used. Telerik OpenAccess ORM always needs to associate its persistent types with a primary key. If such is not supplied, Telerik OpenAccess ORM uses internal mechanism for creating IDs. This mechanism relies that a certain table (voa_keygen) is presented in your database.

    The Update Schema property is related to the Update Database from Model wizard. For example, the wizard will look for changes in entities with Update Schema property set to true.
    The Cache Policy property is related to the 2nd level cache. When the 2nd level cache is enabled, the Cache Policy property specifies whether objects of that type should be cached or not. The following cache policies are available:
    - NoCache - do not cache instances of this class.
    - CacheOnly - cache instances of this class.
    - CacheAllInstances - cache all instances of this class as soon as an instance is requested. All rows from its table will be read and cached whenever an instance is requested but not found in cache. This may work well for small static tables.

    We are planning to provide a help topic describing all possible properties for the different items in the Visual Designer. Meanwhile, if you have further questions, do not hesitate to contact us.


    All the best,
    Pencho
    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. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 27 Jul 2011 Link to this post

    Thanks for the info.
    What is the default strategy when using Model-First where Concurrency Mode is Default & Concurrency Member is AUTO? I guessing Concurrency Mode is Changed or All. 
  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 28 Jul 2011 Link to this post

    Hi Axe,

    The default concurrency mode at the moment is Changed. The concurrency member is set to Auto, which in this case means that there is no specific concurrency member, as it is not needed for the Changed concurrency mechanism. I hope that helps.

    Kind regards,
    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!

Back to Top