Where is the code generation tools 2016?

8 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Sep 2014

    Posted 10 Jun Link to this post

    When will the code generation tools of data access release ? for visual studio 2015 user.
  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 15 Jun Link to this post

    Hello Jason,

    The implementation of the tool for generating new fluent models based on existing databases is ready. There's an unofficial pre-release Beta version at https://www.nuget.org/packages/Telerik.DataAccess.Fluent.CodeGeneration. You can download it and give it a try to see what we have been cooking for so long. At the time present, we are waiting to clear some formal obstacles before we can release the source code and the official first Beta version of the tool.
     
    A bit of details:
     
    What you can do
    - create new fluent models based on existing database schemata. 
    - switch between SQL type mapping (same as Add New Fluent Model wizard was using) and Backend-Independent type mapping
     
    What is missing
    - update existing Fluent Model support
    - generation for Stored Procedures
    - Visual Basic support
     
    Known issues
    - Only DBO (default) schema is read and mapped
     
    Next steps for the tool are
    1. Publish the source code in GitHub
    2. Gather your feedback in the repository
    3. Implement Update Existing Fluent Model functionality

    I hope this helps.

    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. DevCraft banner
  4. Juan Daniel
    Juan Daniel avatar
    3 posts
    Member since:
    Nov 2012

    Posted 25 Jul in reply to Doroteya Link to this post

    Hi Doroteya,

    Any update about this tool?

     

    Thanks.

  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 27 Jul Link to this post

    Hello Juan Daniel,

    Currently, the state of the tool is unchanged. It is distributed through the Telerik.DataAccess.Fluent.CodeGeneration NuGet package and it is still in pre-release Beta. The release process on our side is delayed by formal tasks that should complete before the tool is officially live. As for adding new features to the tool, our planning in this direction is dependent on the completion of the formal tasks and we made no changes until now. 

    I hope this helps.

    Regards,
    Doroteya
    Telerik by Progress
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  6. Michael
    Michael avatar
    7 posts
    Member since:
    Mar 2013

    Posted 30 Aug Link to this post

    Where are you gathering feedback about this? I can't find it.
  7. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 01 Sep Link to this post

    Hi Michael,

    This is the feedback item on our portal.

    Regards,
    Doroteya
    Telerik by Progress
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  8. William John Adam Trindade
    William John Adam Trindade avatar
    3 posts
    Member since:
    Apr 2010

    Posted 13 Sep in reply to Doroteya Link to this post

    How do you use this tool? After installing nuget through the console, I do not find the menu to trigger the creation of fluent model.

    Is there a Tutorial (step by step)?

     

    Thanks

     

    William

  9. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 16 Sep Link to this post

    Hello William,

    After installing the code generation NuGet package in your project, all you have to do is add a connection string in the respective App.config\Web.config file and to run the PowerShell script located in the Telerik.DataAccess.CodeGeneration folder. Attached to this message is a screencast that demonstrates the process.

    Note that by default the script will generate persistent classes and mapping configuration for the views in the database as well as for the tables. At this point you need to enhance a bit the configuration of the views in the metadatasource class. You need to nominate a property (or a combination of properties) for identity of the classes mapped to views. To do so you need to use the IsIdentity() method of our Fluent API.

    Additionally, the nominated class members should uniquely identify the results returned by the views, so that you can consume them safely in your application. If the configuration of any class mapped to view is left without an identity you will experience the following error:  

    Invalid object name 'voa_keygen'. Telerik.OpenAccess.RT.sql.SQLException: Invalid object name 'voa_keygen'. at Telerik.OpenAccess.RT.Adonet2Generic.Impl.StatementImp.executeQuery

    I hope this helps.

    Regards,
    Doroteya
    Telerik by Progress
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Back to Top
DevCraft banner