I have an error, when I create the StudenCoruses table, this is the error:" introducing foreign key constraint on table may cause cycles or multiple cascade paths"
@xiazhai83376 жыл бұрын
Hi, thank you for this good tutorials. Can you tell me Where the source code is?
@Vidhi_Waghmare Жыл бұрын
I'm getting this error after my create view is made I've tried many times to resolve this but not able to do this please help me out? Server Error in '/' Application. No parameterless constructor defined for this object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.MissingMethodException: No parameterless constructor defined for this object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
@ASPNETMVCCORE Жыл бұрын
check constructor of you project
@Vidhi_Waghmare Жыл бұрын
@@ASPNETMVCCORE what logic is invloved behind that constructor? please tell
@fejdraus7 жыл бұрын
How did you create the StudentCourse table without the primary key?
@ASPNETMVCCORE7 жыл бұрын
you can declare composite key in DataContext class
@fejdraus7 жыл бұрын
Did like you got an error The entity type 'StudentCourse' requires a primary key to be defined.
@fejdraus7 жыл бұрын
And how to do it that would work when using two databases? The first table is from the AuthDbContext database, and the second is the DataDbContext. A composite key in the DataDbContext. When migrating AuthDbContext produces an error The entity type 'StudentCourse' requires a primary key to be defined.
@ASPNETMVCCORE7 жыл бұрын
no need dude
@mishraup3 жыл бұрын
Kam se kam table ki relationship toh batate sir...not clear .. please send me link of the table
@ashasaha37903 жыл бұрын
not a useful video!!!
@ASPNETMVCCORE3 жыл бұрын
Why do you say that?
@ashasaha37903 жыл бұрын
@@ASPNETMVCCORE it's complicated, you could make it simpler way. Following it I was getting error regarding System.InvalidOperationException