diff --git a/README.md b/README.md index 1c157e8..b2f850a 100644 --- a/README.md +++ b/README.md @@ -8,32 +8,12 @@ Nuget package available here [https://www.nuget.org/packages/Wilcommerce.Core.Data.EFCore](https://www.nuget.org/packages/Wilcommerce.Core.Data.EFCore) ## Usage -Add the CommonContext class to your project. - -For example in an ASP.NET Core project add this line to the ConfigureServices method in Startup.cs -``` -services.AddDbContext(options => // Specify your provider); -``` -The CommonContext is injected in the read model component and the Repositoryimplementation. - -If you need to persists the events using Entity Framework Core, add the EventsContext class to your project. +Add the the EventsContext class to your project. ``` services.AddDbContext(options => // Specify your provider); ``` The EventsContext is injected in the EventStore implementation -## Read model Component -The CommonDatabase class is the Entity Framework Core implementation of the [ICommonDatabase](https://github.com/wilcommerce/Wilcommerce.Core/blob/master/src/Wilcommerce.Core.Common/Domain/ReadModels/ICommonDatabase.cs) interface. - -It provides a facade to access all the readonly data. -It requires an instance of CommonContext as constructor parameters. - -## Repository Component -The Repository class is the Entity Framework Core implementation of the [IRepository](https://github.com/wilcommerce/Wilcommerce.Core/blob/master/src/Wilcommerce.Core.Common/Domain/Repository/IRepository.cs) interface. - -It provides all the methods useful for persist an Aggregate model. -It requires a CommonContext instance as constructor parameter. - ## EventStore Component The EventStore class is the Entity Framework Core implementation of the [IEventStore](https://github.com/wilcommerce/Wilcommerce.Core/blob/master/src/Wilcommerce.Core.Infrastructure/IEventStore.cs) interface. diff --git a/Wilcommerce.Core.Data.EFCore.Test/Wilcommerce.Core.Data.EFCore.Test.csproj b/Wilcommerce.Core.Data.EFCore.Test/Wilcommerce.Core.Data.EFCore.Test.csproj index 12e2768..22aa152 100644 --- a/Wilcommerce.Core.Data.EFCore.Test/Wilcommerce.Core.Data.EFCore.Test.csproj +++ b/Wilcommerce.Core.Data.EFCore.Test/Wilcommerce.Core.Data.EFCore.Test.csproj @@ -7,11 +7,14 @@ - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers + diff --git a/src/Wilcommerce.Core.Data.EFCore/Wilcommerce.Core.Data.EFCore.csproj b/src/Wilcommerce.Core.Data.EFCore/Wilcommerce.Core.Data.EFCore.csproj index e559e34..d42fb50 100644 --- a/src/Wilcommerce.Core.Data.EFCore/Wilcommerce.Core.Data.EFCore.csproj +++ b/src/Wilcommerce.Core.Data.EFCore/Wilcommerce.Core.Data.EFCore.csproj @@ -14,7 +14,7 @@ false false false - 1.0.0-rc3 + 1.0.0-rc4 Alberto Mori