updated doc.
This commit is contained in:
parent
d06778d524
commit
0d1dca11bc
29
README.md
29
README.md
@ -11,4 +11,31 @@ One of the most obvious reasy is to be able to execute async/await operations on
|
|||||||
Full Version | NuGet | NuGet Install
|
Full Version | NuGet | NuGet Install
|
||||||
------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------:
|
------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------:
|
||||||
PoweredSoft.Data.Core | <a href="https://www.nuget.org/packages/PoweredSoft.Data.Core/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Data.Core/)</a> | ```PM> Install-Package PoweredSoft.Data.Core```
|
PoweredSoft.Data.Core | <a href="https://www.nuget.org/packages/PoweredSoft.Data.Core/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Data.Core/)</a> | ```PM> Install-Package PoweredSoft.Data.Core```
|
||||||
PoweredSoft.Data.EntityFrameworkCore | <a href="https://www.nuget.org/packages/PoweredSoft.Data.EntityFrameworkCore/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Data.EntityFrameworkCore/)</a> | ```PM> Install-Package PoweredSoft.Data.EntityFrameworkCore```
|
PoweredSoft.Data.EntityFrameworkCore | <a href="https://www.nuget.org/packages/PoweredSoft.Data.EntityFrameworkCore/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Data.EntityFrameworkCore/)</a> | ```PM> Install-Package PoweredSoft.Data.EntityFrameworkCore```
|
||||||
|
|
||||||
|
|
||||||
|
# In your application you may do the following
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
public class Startup
|
||||||
|
{
|
||||||
|
public void ConfigureServices(IServiceCollection services)
|
||||||
|
{
|
||||||
|
services.AddPoweredSoftDataServices();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
> Then somewhere else.
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
public class SomeClass
|
||||||
|
{
|
||||||
|
private readonly IDbContextFactory contextFactory;
|
||||||
|
public SomeClass(IDbContextFactoryProvider dbContextFactoryProvider)
|
||||||
|
{
|
||||||
|
contextFactory = dbContextFactoryProvider.GetContextFactory(typeof(YourFavoriteContext));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user