@@ -31,7 +31,7 @@ builder.Host.UseWolverine(opts =>
3131 opts .Policies .UseDurableLocalQueues ();
3232});
3333```
34- <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/Program.cs#L35-L52 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_registering_efcore_middleware ' title =' Start of snippet ' >anchor</a ></sup >
34+ <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/Program.cs#L36-L53 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_registering_efcore_middleware ' title =' Start of snippet ' >anchor</a ></sup >
3535<!-- endSnippet -->
3636
3737::: tip
@@ -124,7 +124,7 @@ this syntax for the service registration:
124124builder .Services .AddDbContextWithWolverineIntegration <ItemsDbContext >(
125125 x => x .UseSqlServer (connectionString ), " wolverine" );
126126```
127- <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/Program.cs#L18-L25 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_optimized_efcore_registration ' title =' Start of snippet ' >anchor</a ></sup >
127+ <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/Program.cs#L19-L26 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_optimized_efcore_registration ' title =' Start of snippet ' >anchor</a ></sup >
128128<!-- endSnippet -->
129129
130130That registration will:
@@ -219,7 +219,7 @@ public async Task Post(
219219 await outbox .SaveChangesAndFlushMessagesAsync ();
220220}
221221```
222- <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/CreateItemController.cs#L8-L38 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_using_dbcontext_outbox_1 ' title =' Start of snippet ' >anchor</a ></sup >
222+ <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/CreateItemController.cs#L10-L40 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_using_dbcontext_outbox_1 ' title =' Start of snippet ' >anchor</a ></sup >
223223<!-- endSnippet -->
224224
225225Or use the ` IDbContextOutbox ` as shown below, but in this case you will need to explicitly call ` Enroll() ` on
@@ -261,7 +261,7 @@ public async Task Post3(
261261 await outbox .SaveChangesAndFlushMessagesAsync ();
262262}
263263```
264- <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/CreateItemController.cs#L41-L76 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_using_dbcontext_outbox_2 ' title =' Start of snippet ' >anchor</a ></sup >
264+ <sup ><a href =' https://github.com/JasperFx/wolverine/blob/main/src/Samples/EFCoreSample/ItemService/CreateItemController.cs#L43-L78 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-sample_using_dbcontext_outbox_2 ' title =' Start of snippet ' >anchor</a ></sup >
265265<!-- endSnippet -->
266266
267267## As Saga Storage
0 commit comments