Herbix
Herbix
CC#
Created by Herbix on 3/27/2023 in #help
❔ <AuthorizeView> not working
I am currently making a Blazor Server App with a Custom Authentication. I can give my current user roles but then cannot use the AuthorizeView attribute. More info here: https://stackoverflow.com/questions/75855206/authorizeview-not-woking-in-blazor-server-app
2 replies
CC#
Created by Herbix on 9/30/2022 in #help
IDENTITY_INSERT Error on table in which I am not even trying to insert?
I am getting this Error: SqlException: Cannot insert explicit value for identity column in table 'Unterwerke' when IDENTITY_INSERT is set to OFF. ..when I am Trying to insert something into the table "Clients". Every Client has 1 Unterwerk but i am never inserting an Unterwerk in my code. This is how I insert the client:
public void Insert(Client entity)
{
_context.Clients.Add(entity);
_context.SaveChanges();
}
public void Insert(Client entity)
{
_context.Clients.Add(entity);
_context.SaveChanges();
}
4 replies