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
As the actor model has Actor_Movies relation when we create new actor
(ModelState.IsValid) this function not let us add data to create new actor
what is the solution for it can you Help me out??
The text was updated successfully, but these errors were encountered:
I had this error as well when using .NET 8.0 framework. I resolved this by adding the [ValidateNever] tag on the Actors_Movies property of the Actor.cs file. Here is the code snippet:
I believe the issues stem from changes in how model validation works in later versions like .NET 8 (the course uses 5.0) has evolved over time, and there have been updates and changes in model binding and validation behaviors.
As the actor model has Actor_Movies relation when we create new actor
(ModelState.IsValid) this function not let us add data to create new actor
what is the solution for it can you Help me out??
The text was updated successfully, but these errors were encountered: