You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When working with Entity Framework Core in Blazor, it would be convenient to be able to bind to a tracked property so that when the element representing the property is changed, the change can be saved via Entity Framework Core as well.
Describe the solution you'd like
<input type="checkbox" id="checkboxIsFavorite" @bind="User.IsFavorite" @onchange-callback="SaveContext">
@code {
[Parameter]
public Record User { get; set; } // this is already being tracked by EF Core
// this function is called after the default onchange completes
private async Task SaveContext() {
// code that simply saves the db context, which will save the change to User.IsFavorite
}
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When working with Entity Framework Core in Blazor, it would be convenient to be able to bind to a tracked property so that when the element representing the property is changed, the change can be saved via Entity Framework Core as well.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: