Comments (5)
The actual role seems to be saved successfully though...
Not sure what's going on. I have a suspicion it has something to do with the fact that PermissionViewModel is a record in stead of a regular class...
from blazor-wasm-boilerplate.
Indeed like I thought... Adding an Equals method to PermissionViewModel
that delegates to the base (FSHPermission) seems to get rid of the exception (otherwise it also takes the Enabled
property into account when comparing):
public sealed record PermissionViewModel : FSHPermission
{
public bool Enabled { get; set; }
public PermissionViewModel(string Description, string Action, string Resource, bool IsBasic = false, bool IsRoot = false)
: base(Description, Action, Resource, IsBasic, IsRoot)
{
}
public bool Equals(PermissionViewModel? other) => base.Equals(other);
public override int GetHashCode() => base.GetHashCode();
}
from blazor-wasm-boilerplate.
I'll test that and give you a feedback
from blazor-wasm-boilerplate.
Worked fine after adding the Equals method.
Thanks
from blazor-wasm-boilerplate.
This shouldn't be closed as long as it isn't fixed in the actual repo... You're welcome to create a PR ;-)
from blazor-wasm-boilerplate.
Related Issues (20)
- Resend user email confirmation
- validation not working HOT 1
- The MudDatePicker does not work in the dialogbox HOT 2
- API error messages not getting passed HOT 10
- Make Superadmin role for tenants management
- Search product by Brand name doesnot work
- Cannot login using administrator credentials HOT 15
- Web-api giving exception on clicking Dashboard in Blazor frontend HOT 3
- "TypeError: Failed to fetch" error HOT 1
- HamburgerMenu Bug
- What is the difference between these two projects? I am confused
- MudTable to MudDataGrid HOT 1
- Why does the registration page keep redirecting to the login page as soon as button pressed ? HOT 1
- How to create menu Item on Table. HOT 1
- How to update FSHAPI.cs? HOT 2
- Issue with release builds/publish
- Unable to resolve nuget packages
- How to delete selected items only in EntityTable grid
- How to get selected items from the Entity Table
- Reset-Password UI screen is missing. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazor-wasm-boilerplate.