Based on the provided sceenshot I see that you are creating your model in our Visual Designer. In this case, in order to use the CreateateDDLScript and CreateUpdateDDLScript methods you need to set the Update Schema
property of each of the persistent classes to True
. Once you do this, you need to explicitly save the model, in order to trigger the code generation templates. At this point, you can run your logic for test. The outcome should be a correct script.
In case you notice that the generated script still has problems, let us know.
I hope this helps.
Check out the latest announcement
about Telerik Data Access vNext as a powerful framework
able to solve core development problems.