I've just upgraded the tool in github repository to 1.4.0. <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/c0df55f0bbc2692186d93dc2510df3d6a6e888e6">https://github.com/aspnetzero/aspnet-ze ... d6a6e888e6</a>
This problem should be solved. Thanks for reporting.
Currently there is no option to do that but it may be in future releases.
a. The new templates do not work and the code generated gives errors on the angular side... how t fix that?
What is that error?
b. how to stop RAD from auto updating templates? how to go back to previous RAD Tool templates?
There is no benefit of not updating templates. So there is no option to do that. However, if you override all the templates one by one, tool will still use them after update. <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Rad-Tool#how-to-edit-pre-defined-templates-or-create-a-new-">https://aspnetzero.com/Documents/Develo ... ate-a-new-</a>
Hi,
Sorry for the issue. Constructor part is missing in view modal component. import '{{Entity_Name_Here}}Dto' from service-proxies, and add those 2 lines to constructor:
constructor(
injector: Injector
) {
super(injector);
this.item = new Get{{Entity_Name_Here}}ForView(); //1
this.item.{{entity_Name_Here}} = new {{Entity_Name_Here}}Dto(); //2
}
I've just fixed it <a class="postlink" href="https://github.com/aspnetzero/documents/commit/a018a25af59fb97d4d1e2b7da942b02fe4ca013b">https://github.com/aspnetzero/documents ... 2fe4ca013b</a> (Though i misspelled documentation)
Thanks for reporting.
a) You can add a new property field in AspNetZeroRadTool/{YourEntity}.json file and run the tool on command line. See <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Rad-Tool-Mac-Linux">https://aspnetzero.com/Documents/Develo ... -Mac-Linux</a>
or
b) You can re-specify your entity on visual studio extension and run it. (Same namespace, table name, entity name, entity name plural etc.)
Any customization you made in generated files will be lost.
Hi,
InputSource is not inside stage_SQLHost object. So, chancing "stage_SQLHost.InputSource" to "inputSource" will fix this issue.
like below :
{
targets: 2,
data: "inputSource"
},
Tool only modifies the English localization file. To add Spanish localization, look at @aaron's answer.
You can set it in CreateOrEditModal method of controller.
if (id.HasValue){
...
}
else{
getPersonForEditOutput = new GetPersonForEditOutput{
Person = new CreateOrEditPersonDto() { BirthDate = DateTime.Today } // <------
};
}
Change
Id: $('#teste').val()
to
id: $('#teste').val()