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

Code Designer vs Code Only / Fluent Mapping

3 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Manuel
Top achievements
Rank 1
Manuel asked on 10 Mar 2014, 01:44 PM
Hello,

do you have somewhere a feature list of the Code Designer and Code Only / Fluent Mapping?

Thank you,
Manuel

3 Answers, 1 is accepted

Sort by
0
Kristian Nikolov
Telerik team
answered on 12 Mar 2014, 09:26 AM
Hi Manuel,

Models mapped with the Visual Designer tool (Domain Models) and models mapped with Fluent Mapping (Fluent Models) offer the same persistence capability and change tracking. From the point of a project consuming a model, both Domain and Fluent Models act in the same manner.

That being said each model type has specific features not present in the other. Here is a list of key points regarding the two model types

Domain Model:
  • Uses the Visual Designer tool to define or modify the mapping of the model.
  • Code for the persistent classes, the model context class is generated automatically after the initial creating of the model. After that it is re-generated automatically when saving the model in order to reflect changes in the mapping.
  • Offers visual wizards for updating/creating the model from a database or vice versa.
  • The Service Wizard can generate various web services based on the model.

Fluent Model:
  • Allows for greater customization of the model. This is due to the fact that code is auto-generated only once - when creating the model from an existing database.
  • The mapping is defined manually by code in C# or VB.Net using the Fluent API.
  • Allows for the usage of Artificial Types - types defined at runtime.

You could also check out the Getting Started section of our documentation as it shows examples of using both Domain and Fluent models.

I hope this helps. Do not hesitate to contact us again in case you have additional questions or need help.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
Manuel
Top achievements
Rank 1
answered on 12 Mar 2014, 10:29 AM
Dear Kristian,

besides the Code Generation / Wizards both Models have the same functionality, right?

Thank you,
Manuel
0
Kristian Nikolov
Telerik team
answered on 12 Mar 2014, 03:36 PM
Hi Manuel,

Yes, they offer the same functionality with one difference -  only Fluent Models allow for the usage of Artificial Types.

Should you have additional questions, do not hesitate to get back to us.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
General Discussions
Asked by
Manuel
Top achievements
Rank 1
Answers by
Kristian Nikolov
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or