This is a migrated thread and some comments may be shown as answers.

Entity Properties Window in Designer

3 Answers 24 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Axe
Top achievements
Rank 1
Axe asked on 25 Jul 2011, 12:35 PM
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.

3 Answers, 1 is accepted

Sort by
0
Pencho
Telerik team
answered on 26 Jul 2011, 05:21 PM
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!

0
Axe
Top achievements
Rank 1
answered on 27 Jul 2011, 02:34 PM
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. 
0
Alexander
Telerik team
answered on 28 Jul 2011, 03:20 PM
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!

Tags
Design Time (Visual Designer & Tools)
Asked by
Axe
Top achievements
Rank 1
Answers by
Pencho
Telerik team
Axe
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or