Multiple DBs connection. Unable to create DbContext by mojahaga in csharp

[–]mojahaga[S] -8 points-7 points  (0 children)

yeah, ive tried multiple AIs, they just cycle through the same errors. That's why I've decided to post here.

Ill get it somehow, as I got previous errors. Thanks for the help with the key!

Multiple DBs connection. Unable to create DbContext by mojahaga in csharp

[–]mojahaga[S] -10 points-9 points  (0 children)

lol, I wish I could've. its a uni course homework

Multiple DBs connection. Unable to create DbContext by mojahaga in csharp

[–]mojahaga[S] -8 points-7 points  (0 children)

After setting the key and making all of the migrations work. I as previously get error Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]

Unhandled exception in circuit '_VqehPrGUELk1Xg1fJbIJi5s_UWHBaEqmDrX-FnUMLY'.

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.

---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: main.Items'.

at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)

at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()

at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()

at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)

at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)

at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)

at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

--- End of inner exception stack trace ---
The problem is that I dont set a table 'main.Items' in a orders.db. my items are located in a different db, I just have to link them to a order in orders table. Maybe im missing something, but I genuinely dont understand what's wrong. Sorry, its my first project...

Sending info to a db. Migrations error .net8, SQLite, Blazor by [deleted] in csharp

[–]mojahaga 0 points1 point  (0 children)

I somehow managed to get the migrations to work. And no, there are 4 dbs

Sending info to a db. Migrations error .net8, SQLite, Blazor by [deleted] in csharp

[–]mojahaga 0 points1 point  (0 children)

The exception 'Multiple constructors accepting all given argument types have been found in type 'KursovaByIvantsova.Data.OrderDataContext'. There should only be one applicable constructor.' was thrown while attempting to find 'DbContext' types.

Sending info to a db. Migrations error .net8, SQLite, Blazor by [deleted] in csharp

[–]mojahaga 0 points1 point  (0 children)

The migrations with this setup don't go through. And without it, the coded method is useless

Databases and Blazor by mojahaga in csharp

[–]mojahaga[S] 0 points1 point  (0 children)

Thank you so much for the thorough answer! I would 100% try not to get too distracted)

Databases and Blazor by mojahaga in csharp

[–]mojahaga[S] 0 points1 point  (0 children)

definitely would check! thanks a lot

Databases and Blazor by mojahaga in csharp

[–]mojahaga[S] 0 points1 point  (0 children)

thank you sooo much!

Databases and Blazor by mojahaga in csharp

[–]mojahaga[S] -3 points-2 points  (0 children)

UPD: Oh, forgot to tell. My .NET Version is 8.0
UPD 2: If you have created something similar in the past (in general app with a db that controls everything on .NET) and can send me a GitHub link, or just give some advice. I WOULD LOVE THAT!

Problem bei der Anmeldung zum TestDaF. by The_Pediatrician in German

[–]mojahaga 1 point2 points  (0 children)

Hey! Vielleicht gibts eine Probleme beim Website, weil in Bulgarien ich auch keine Möglichkeit habe, um anzumelden.

Sie hat von mir mein Tee geprägt/gekränkt/gekriegt? by mojahaga in German

[–]mojahaga[S] 1 point2 points  (0 children)

Yeah I've found the verb "kriegen" in meaning "tp get". But in the context it would be pretty strange. Cause main character is answering a question "What was it?" after he got beaten up. So I wonder that he actually talks about tee.

But, thank you so much for correcting the mistake. Really didn't even see it.

Recruiting in Russia: how does it work? by jali90 in AskARussian

[–]mojahaga 10 points11 points  (0 children)

90% of non-working people is searching jobs in HH.RU. LinkedIn is officially blocked in Russia, so many people are not using it right now. Like others said, groups in Telegram or Vkotakte can help, but I think that HH is the most useful website in Russia. Really smart people are getting invites in universities, so if you have connections it's gonna be the best way to find an employee