updated doc.
This commit is contained in:
		
							parent
							
								
									d06778d524
								
							
						
					
					
						commit
						0d1dca11bc
					
				
							
								
								
									
										27
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								README.md
									
									
									
									
									
								
							| @ -12,3 +12,30 @@ Full Version                  | NuGet | ||||
| ------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------: | ||||
| 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``` | ||||
| 
 | ||||
| 
 | ||||
| # 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