Skip to content

Commit ced125f

Browse files
committed
Renamed namespace on Core Microsoft.DependencyInjection
1 parent 7f3cc72 commit ced125f

9 files changed

Lines changed: 10 additions & 11 deletions

File tree

SharpRepository.EfCoreRepository/SharpRepository.EfCoreRepository.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Description>SharpRepository is a generic repository</Description>
1010
<Summary>Written in C#, includes support for various relational, document and object databases including Entity Framework, RavenDB, MongoDB, CouchDB and Db4o. SharpRepository includes Xml and InMemory repository implementations as well. SharpRepository offers built-in caching options for AppFabric, memcached and the standard System.Runtime.Caching. SharpRepository also supports Specifications, FetchStrategies, Batches and Traits!</Summary>
1111
<PackageId>SharpRepository.EfCoreRepository</PackageId>
12-
<PackageVersion>2.0.1-beta1</PackageVersion>
12+
<PackageVersion>2.0.1-beta1</PackageVersion>
1313
<PackageReleaseNotes>2.0.1-beta1: Configurable via appsettings.json</PackageReleaseNotes>
1414
<PackageTags>SharpRepository Repository EfRepository EntityFramework Entity Framework EF6</PackageTags>
1515
<PackageIconUrl>https://user-images.githubusercontent.com/6349515/28491142-7b6350c4-6eeb-11e7-9c5b-e3b8ef1e73b8.png</PackageIconUrl>

SharpRepository.EfRepository/SharpRepository.EfRepository.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageProjectUrl>https://github.com/SharpRepository/SharpRepository</PackageProjectUrl>
1414
<PackageLicenseUrl>https://raw.githubusercontent.com/SharpRepository/SharpRepository/master/license.txt</PackageLicenseUrl>
1515
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
16-
<RepositoryUrl>https://github.com/SharpRepository/SharpRepository.git</RepositoryUrl>
16+
<RepositoryUrl>https://github.com/SharpRepository/SharpRepository.git</RepositoryUrl>
1717
<RepositoryType>git</RepositoryType>
1818
<Version>2.0.1-beta1</Version>
1919
</PropertyGroup>

SharpRepository.Ioc.Microsoft.DependencyInjection/DependencyResolverWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using SharpRepository.Repository.Ioc;
33
using Microsoft.Extensions.DependencyInjection;
44

5-
namespace SharpRepository.Ioc.NetCoreServices
5+
namespace SharpRepository.Ioc.Microsoft.DependencyInjection
66
{
77
public class DependencyResolverWrapper : IRepositoryDependencyResolver
88
{

SharpRepository.Ioc.Microsoft.DependencyInjection/ServicesCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using StructureMap;
88
using System;
99

10-
namespace SharpRepository.Ioc.NetCoreServices
10+
namespace SharpRepository.Ioc.Microsoft.DependencyInjection
1111
{
1212
public static class ServicesCollectionExtensions
1313
{

SharpRepository.Ioc.Microsoft.DependencyInjection/SharpRepository.Ioc.Microsoft.DependencyInjection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Description>Injects SharpRepository using StructureMap in your .NET Core apps or even using Microsoft.DependencyInjection library.</Description>
66
<Summary>Written in C#, includes support for various relational, document and object databases including Entity Framework, RavenDB, MongoDB, CouchDB and Db4o. SharpRepository includes Xml and InMemory repository implementations as well. SharpRepository offers built-in caching options for AppFabric, memcached and the standard System.Runtime.Caching. SharpRepository also supports Specifications, FetchStrategies, Batches and Traits!</Summary>
77
<PackageId>SharpRepository.Ioc.Microsoft.DependencyInjection</PackageId>
8-
<PackageVersion>2.0.0-beta1</PackageVersion>
8+
<PackageVersion>2.0.1-beta1</PackageVersion>
99
<PackageReleaseNotes>2.0.1-beta1: Adds SharpRepository configured with StructureMap</PackageReleaseNotes>
1010
<PackageTags>SharpRepository Repository IoC .NET Core Standard ServiceProvider Microsoft.DependencyInjection SharpRepository</PackageTags>
1111
<PackageIconUrl>https://user-images.githubusercontent.com/6349515/28491142-7b6350c4-6eeb-11e7-9c5b-e3b8ef1e73b8.png</PackageIconUrl>

SharpRepository.MongoDbRepository/SharpRepository.MongoDbRepository.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Description>SharpRepository is a generic repository</Description>
77
<Summary>Written in C#, includes support for various relational, document and object databases including Entity Framework, RavenDB, MongoDB, CouchDB and Db4o. SharpRepository includes Xml and InMemory repository implementations as well. SharpRepository offers built-in caching options for AppFabric, memcached and the standard System.Runtime.Caching. SharpRepository also supports Specifications, FetchStrategies, Batches and Traits!</Summary>
88
<PackageId>SharpRepository.MongoDbRepository</PackageId>
9-
<PackageVersion>2.0.1-beta1</PackageVersion>
9+
<PackageVersion>2.0.1-beta1</PackageVersion>
1010
<PackageReleaseNotes>2.0.1-beta1: configurable via appsettings.json</PackageReleaseNotes>
1111
<PackageTags>SharpRepository Repository MongoDbRepository MongoDb Mongo</PackageTags>
1212
<PackageIconUrl>https://user-images.githubusercontent.com/6349515/28491142-7b6350c4-6eeb-11e7-9c5b-e3b8ef1e73b8.png</PackageIconUrl>
@@ -15,7 +15,7 @@
1515
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1616
<RepositoryUrl>https://github.com/SharpRepository/SharpRepository.git</RepositoryUrl>
1717
<RepositoryType>git</RepositoryType>
18-
<Version>2.0.0-beta1</Version>
18+
<Version>2.0.1-beta1</Version>
1919
</PropertyGroup>
2020

2121
<ItemGroup>

SharpRepository.Samples.CoreMvc/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Microsoft.AspNetCore.Hosting;
88
using Microsoft.Extensions.Configuration;
99
using Microsoft.Extensions.Logging;
10-
using SharpRepository.Ioc.NetCoreServices;
1110

1211
namespace SharpRepository.CoreMvc
1312
{

SharpRepository.Samples.CoreMvc/SharpRepository.Samples.CoreMvc.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Autofac" Version="4.6.2" />
9-
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.0" />
108
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
119
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.0" />
1210
</ItemGroup>

SharpRepository.Samples.CoreMvc/Startup.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.EntityFrameworkCore;
44
using Microsoft.Extensions.Configuration;
55
using Microsoft.Extensions.DependencyInjection;
6-
using SharpRepository.Ioc.NetCoreServices;
6+
using SharpRepository.Ioc.Microsoft.DependencyInjection;
77
using System;
88

99
namespace SharpRepository.CoreMvc
@@ -25,6 +25,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
2525
services.AddDbContext<ContactContext>(options =>
2626
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
2727

28+
// services.AddTransient<DbContext, ContactContext>(); // needed if you don't write dbContextClass on json configuration
29+
2830
// return services.UseSharpRepository(Configuration.GetSection("sharpRepository")); //default InMemory
2931
// return services.UseSharpRepository(Configuration.GetSection("sharpRepository"), "mongoDb"); // for Mongo Db
3032
return services.UseSharpRepository(Configuration.GetSection("sharpRepository"), "efCore"); // for Ef Core

0 commit comments

Comments
 (0)