Hi,
You can find tutorial for extending entities here <a class="postlink" href="http://aspnetzero.com/Documents/Extending-Existing-Entities">http://aspnetzero.com/Documents/Extendi ... g-Entities</a>. For the example Edition entity is used :)
I hope this helps.
Hi,
I assume that this method is in an application service. If it is, you should not return your Entity to client. Instead you should use a dto object like PatientBodyImageDto.
An example update might be like:
public async Task<PatientBodyImageDto> PostSetPatientBodyImageStateAsync(IdInput input)
{
PatientBodyImage patientBodyImage = await _patientBodyImageRepository.GetAsync(input.Id);
Logger.Debug("Setting a new image state async: " + input.Name);
patientBodyImage.State = PatientBodyImageStates.Approved;
var update = await _patientBodyImageRepository.UpdateAsync(patientBodyImage);
return update.MapTo<PatientBodyImageDto>();
}
You have to create PatientBodyImageDto class and put an attribute on it for AutoMapping.
[AutoMapFrom(typeof(PatientBodyImage))]
I hope this helps.
Hi,
You can download module zero template here <a class="postlink" href="http://aspnetboilerplate.com/Templates">http://aspnetboilerplate.com/Templates</a> Ensure that the checkbox at 3. step is checked.
Hi,
Today we are going to add a tutorial about extending Entities in ASP.NET Zero website. We will inform you when it is published.
Hi,
Can you get the result of ChangePasswordAsync method and see if there is an error ?
var result = await _userManager.ChangePasswordAsync(1, "123qwe","blabla");
Hi,
You can access the latest metronic theme here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.8.0.0/metronic-v4.5.4.zip">https://github.com/aspnetzero/aspnet-ze ... v4.5.4.zip</a>.
If you want and older version of metronic, please take a look at ASP.NET Zero relases under github <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases">https://github.com/aspnetzero/aspnet-zero/releases</a>.
Hi,
This is the right way actually. Can you get the return value of this method and see if there is an error message ?
var result = await _userManager.ChangePasswordAsync(1, "123qwe", "blabla");
Hi,
I think this problem is not related to ui-jq. I have tried your syntax and it worked for me.
ng-options="languageName.value as languageName.displayText + ' | '+ languageName.value for languageName in vm.languageNames"
It might be a browser caching problem. Can you check that ?
Hello,
Yes it is possible. You can define another ViewBase for your MainApp like.
public abstract class MainAppWebViewPageBase<TModel> : AbpWebViewPage<TModel>
{
protected AbpZeroTemplateWebViewPageBase()
{
LocalizationSourceName = "MainApp"
}
}
Then you can configure it in the web.config file under "/App/MainApp" directory like (Add if it does not exist)
<system.web.webPages.razor>
<pages pageBaseType="MainAppWebViewPageBase">
....
</pages>
</system.web.webPages.razor>
Then it should work like you expected.
I hope this helps.
Hi,
This is not angular version actually. But you can use it in Angular by angular ui's uiJq directive. Take a look at here <a class="postlink" href="https://github.com/angular-ui/angular-ui-OLDREPO/tree/master/modules/directives/jq">https://github.com/angular-ui/angular-u ... ectives/jq</a>.
In our code
ui-jq="selectpicker"
does the trick.
Or for a full angular compatible solution you can use angular ui's ui-select. You can find detailed information about ui-select here <a class="postlink" href="https://github.com/angular-ui/ui-select">https://github.com/angular-ui/ui-select</a>.
I hope these can help you :)