studentoffuturearts
studentoffuturearts
CC#
Created by studentoffuturearts on 3/19/2024 in #help
Implementing .net Auth/Identity
K, thanks for the info!
13 replies
CC#
Created by studentoffuturearts on 3/19/2024 in #help
Implementing .net Auth/Identity
Get you, hence my confusion at this, i have no idea what exactly it expects and find lots of conflicting info is blazor easy to implement then?
13 replies
CC#
Created by studentoffuturearts on 3/19/2024 in #help
Implementing .net Auth/Identity
Ahead of you =D, already commented out useRouting, but same thing
13 replies
CC#
Created by studentoffuturearts on 3/19/2024 in #help
Implementing .net Auth/Identity
Thanks for the reply seems i already had useAuthorization(); added the other 2 above the line, but not working yet
13 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
Wow man, thanks, for real i would've never found this out
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
Logical, but would've never thought of this indeed, the server is launching this time, so it seems functional
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
going to check it out now
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
i'm on 6.0 but i'll start a new project later with just these or maybe start one in 8.0
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
should the models be created in a certain order ? Like with migrations ?
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
considering good practice, should i be using less ? And yeah, i figured, been at this for hours but i can't seem to find a reason the constraint fails I though is was some underlying framework thing
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
No, no data present i've been deleting it everytime i change something
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
you mean, just delete the DB and run the app again right ? that we're on the same page
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
https://paste.mod.gg/qxkomveatail/1 here is 'in' and 'out' the [Key] and [database..] clauses i added to make sure primary key was recognized and hoped to make sure the seeded data PK was incremented from 0 (to make sure i was adding correct values and that wasn't the constraint problem)
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
good to know, i'll change it back
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
I actually changed it into ContactId to check if i was using the wrong convention originally they were just Id
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
Thanks for helping me, really appreciate it If there's a better way for me to troubleshoot and things to watch out for/tips to trace such errors, you're welcome to inform me
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
thrown at call stack Microsoft.Data.SqlClient.SqlConnection.OnError(Microsoft.Data.SqlClient.SqlException, bool, System.Action<System.Action>) Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(Microsoft.Data.SqlClient.TdsParserStateObject, bool, bool) Microsoft.Data.SqlClient.TdsParser.TryRun(Microsoft.Data.SqlClient.RunBehavior, Microsoft.Data.SqlClient.SqlCommand, Microsoft.Data.SqlClient.SqlDataReader, Microsoft.Data.SqlClient.BulkCopySimpleResultSet, Microsoft.Data.SqlClient.TdsParserStateObject, out bool) Microsoft.Data.SqlClient.SqlDataReader.TryHasMoreRows(out bool) Microsoft.Data.SqlClient.SqlDataReader.TryHasMoreResults(out bool) Microsoft.Data.SqlClient.SqlDataReader.TryNextResult(out bool) Microsoft.Data.SqlClient.SqlDataReader.NextResult() Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.Consume(Microsoft.EntityFrameworkCore.Storage.RelationalDataReader)
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
exception is SqlException: The MERGE statement conflicted with the FOREIGN KEY constraint "FK_Ins_Contacts_ContactId". The conflict occurred in database "FinAppAPI", table "dbo.Contacts", column 'ContactId'. occurs at the end of DBInitializer/seeder at context.saveChanges()
57 replies
CC#
Created by studentoffuturearts on 3/9/2024 in #help
Anyone with DBInitializer experience/.NET mentor? Could use some help
Here is most of the relevant code https://paste.mod.gg/xpxtoxoywybd/5
57 replies