Vertaling van "DbContext" in Duits
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
My DbContext uses migrations and a seeding method that inserts some data.
Mein DbContext verwendet Migrationen und eine Seeding-Methode, die einige Daten einfügt.
Of course, further DbContext instances can also be used in the tests.
Selbstverständlich können auch weitere DbContext Instanzen in den Tests verwendet werden.
It also makes sense to have different DbContext definitions.
It's an extension method of DbContext.
Es ist eine Erweiterungsmethode von DbContext.
In addition, two DbContext objects are created for testing and generating the required test scenario.
Außerdem werden zwei DbContext Objekte erstellt, die zum Testen und zur Generierung des benötigten Testszenarios vorgesehen sind.
The DbContext can be found in the file
Den DbContext findet man in der Datei
When using the repository layer, the DbContext would be injected into this layer as a dependency.
Bei Verwendung der Repository Layer würde der DbContext als Abhängigkeit in diese Schicht injiziert werden.
And each test method now uses this method along with a unique name to instantiate the DbContext.
Und jede Testmethode verwendet nun diese Methode zusammen mit einem eindeutigen Namen zum Instanziieren von „DbContext".
Filters are used to define a predicate that will be applied to every entity in a DbContext, without a developer needing to remember to include it for every query.
Filter werden verwendet, um ein Prädikat zu definieren, das auf jede Entität in einem DbContext angewendet wird, ohne dass ein Entwickler sie für jede Abfrage berücksichtigen muss.
So then, how do you write good unit tests when your business logic depends on accessing DbContext?
Also, wie schreibt man gute DbContext, wenn Ihre Geschäftslogik vom Zugriff auf DbContext abhängig ist?
It is now possible to define query filters in your DbContext for individual entities, and these filters will be applied to any queries that your app is executing before that query goes to the database.
Filter Es ist jetzt möglich, Abfragefilter in DbContext für einzelne Entitäten zu definieren. Diese Filter werden auf alle Abfragen angewendet, die von Ihrer App ausgeführt werden, bevor diese Abfrage in die Datenbank geht.
But, if you contain your access to the DbContext within a specific data access assembly, you'll find that your unit tests are much easier to write.
Wenn Sie jedoch Ihren Zugriff auf den DbContext innerhalb einer bestimmten Datenzugriffsbaugruppe enthalten, werden Sie feststellen, dass Ihre DbContext viel einfacher zu schreiben sind.
Effort is a file-based in-memory database provider that supplies a DbContext instance with a privately owned temporary database: new context, new database, no test interactions.
Effort ist ein dateibasierter In-Memory-Datenbankanbieter, der eine DbContext Instanz mit einer temporären Datenbank in Privatbesitz versorgt: Neuer Kontext, neue Datenbank, keine DbContext.