Converting a Server to Code-First

You can always right-click the .RODL file(s) of your server project in Visual Studio's Solution Explorer to see additional tasks specific to RODL files. New on version 9, this menu includes an option to assist in converting your RODL-based server to Code-First.

Simply invoke the “Convert to Code-First” to start the conversation:

When you do, Remoting SDK will do two things:

  • It will generate a new code file in your projects’s language, named after the RODL file, but with a _RodlTypes suffix using your project's main language (Oxygene, C#, Swift, Java or Visual Basic). This file will contain all auxiliary types from your .RODL – in essence it will be the same as the previous `_Intf' file, but without all the extra crud.

  • It will remove the .RODL file, as well as _Intf, _Invk files from the project and delete them. These files will no longer be needed.

Once done, you can rename the _RodlTypes file to anything you like, or even move the types in it around into different source files (for example into the same file as their related service) as you see fit for the structure of your projects. These are now “your” types. If you need to make changes to them for new versions of our server, you simply change them in code.

With that conversion done, you will still need to manually adjust the service implementations themselves, as discussed in the Converting to Code-First topic.