Hi, how can I remove the material design style from the bootstrap-select that is used in the language management area? I need to display it in its default style or somehow similar ([http://silviomoreto.github.io/bootstrap-select/examples/#live-search])) Thank you.
Hi, what is best practise in a SPA to pass a parameter to another page?
I need to pass the ID of a project to a details page with a button click in the list of projects. The ID should be used to filter project details, set the page heading, etc..
Thank you very much!
Hi, how can I insert data into two entities which depend on each other (Applicant has foreign key in JobApplication) and where the data is passed in one save action? I have tried to use "applicantId = _applicantRepository.InsertAndGetId(applicant);" to insert the Applicant first, get the ID of the entry and pass it to the method that inserts the JobApplication. I run into an error there. Could you please tell me how to do it right? Thank you!
public class JobApplicationAppService : JobApplicationDatabaseAppServiceBase, IJobApplicationAppService
{
private readonly IRepository<JobApplication, long> _jobApplicationRepository;
private readonly IRepository<Applicant, long> _applicantRepository;
public JobApplicationAppService(IRepository<JobApplication, long> jobApplicationRepository, IRepository<Applicant, long> applicantRepository)
{
_jobApplicationRepository = jobApplicationRepository;
_applicantRepository = applicantRepository;
}
public async Task CreateOrUpdateJobApplication(CreateOrUpdateJobApplicationInput input)
{
if (input.JobApplication.Id.HasValue)
{
// implement
}
else
{
var applicantId = CreateApplicant(input);
CreateJobApplication(input, applicantId);
}
}
[AbpAuthorize(AppPermissions.Pages_Tenant_JobApplications_CreateJobApplication)]
protected virtual long CreateApplicant(CreateOrUpdateJobApplicationInput input)
{
long applicantId;
// Create applicant first and then pass the new ID to the jobApplication
var applicant = input.Applicant.MapTo<Applicant>();
applicantId = _applicantRepository.InsertAndGetId(applicant);
return applicantId;
}
[AbpAuthorize(AppPermissions.Pages_Tenant_JobApplications_CreateJobApplication)]
protected virtual void CreateJobApplication(CreateOrUpdateJobApplicationInput input, long applicantId)
{
input.Applicant.Id = applicantId;
var jobApplication = input.Applicant.MapTo<Applicant>();
}
}
Hi,
how can we handle concurrency concerning database operations within the application safe and easily?
We need to detect that two or more users are changing the same datasets and warn them.
Thank you very much!
Dear ASP.NET Boilerplate Support,
I want to use data from the User table in my code - how can I make it accessible? Do I need to create an IDbSet manually in the DbContext class?
Thank you very much and best regards Chris