« first day (4060 days earlier)      last day (874 days later) » 

mr5
1:00 AM
 
 
1 hour later…
mr5
2:28 AM
@Wietlol awesome presentation from that cool guy. I probably need to rewatch it again since what I've only understood is that this new super lightweight virtual threads is good for IO intensive operations and the upcoming updates have rewritten some existing APIs that should be non-blocking.
 
3:04 AM
 
 
8 hours later…
10:53 AM
> some existing APIs
there is a reason why they needed 10 years for it
they literally went over every single non-cpu-exclusive function and had a discussion about wether or not it should be "non-blocking"
generally speaking, everything is
 
 
4 hours later…
3:03 PM
[Kesarling He-Him] Need a little help
[Kesarling He-Him] How do we use a [Bind] attribute on a custom Object property of a Model?
[Kesarling He-Him] And also, how do we supply it using a DropDown list?
 
3:34 PM
The controller method:
cs
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Add([Bind] Department newDepartment)
{
    await _departmentRepository.AddDepartmentAsync(newDepartment);
    await _departmentRepository.SaveTransactionAsync(true);
    return Redirect("../Details" + "/" + newDepartment.Id);
}
The View:
cs
@model Department
@inject IStaffRepository staffRepository

@{
    // select list
    var listOfEmployees = new List<Staff>();
    foreach (var staff in await staffRepository.GetAllStaffAsync())
    {
        listOfEmployees.Add(staff);
    }
    var selectListHOD = new SelectList(listOfEmployees, "EmployeeId", "Name");
}

<form class="form-group" method="post">
    <div class="d-flex flex-column">
        <div class="input-group" style="margin-bottom: 1%">
            @Html.TextBoxFor(department => department.Id, "", new {
[Kesarling He-Him] passing this does not help
 

« first day (4060 days earlier)      last day (874 days later) »