Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chenriksson committed Feb 10, 2017
1 parent f288e97 commit 3ba4234
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/NuGetGallery.Core/Entities/EntitiesContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Threading.Tasks;

namespace NuGetGallery
Expand Down Expand Up @@ -49,11 +48,6 @@ IDbSet<T> IEntitiesContext.Set<T>()
return base.Set<T>();
}

DbEntityEntry<T> IEntitiesContext.Entry<T>(T entry)
{
return base.Entry<T>(entry);
}

public override async Task<int> SaveChangesAsync()
{
if (ReadOnly)
Expand Down
2 changes: 0 additions & 2 deletions src/NuGetGallery.Core/Entities/IEntitiesContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Threading.Tasks;

namespace NuGetGallery
Expand All @@ -19,7 +18,6 @@ public interface IEntitiesContext
Task<int> SaveChangesAsync();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Set", Justification="This is to match the EF terminology.")]
IDbSet<T> Set<T>() where T : class;
DbEntityEntry<T> Entry<T>(T entry) where T : class;
void DeleteOnCommit<T>(T entity) where T : class;
void SetCommandTimeout(int? seconds);
Database GetDatabase();
Expand Down
5 changes: 0 additions & 5 deletions tests/NuGetGallery.Facts/TestUtils/FakeEntitiesContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Threading.Tasks;
using Xunit;

Expand Down Expand Up @@ -114,10 +113,6 @@ public IDbSet<T> Set<T>() where T : class

return (IDbSet<T>)(dbSets[typeof(T)]);
}
public DbEntityEntry<T> Entry<T>(T entry) where T : class
{
throw new NotSupportedException(); // todo
}

public void DeleteOnCommit<T>(T entity) where T : class
{
Expand Down

0 comments on commit 3ba4234

Please sign in to comment.