Skip to content

Commit 272f326

Browse files
committed
C#: Delete the handwritten EntityFramework stubs.
1 parent 37b510c commit 272f326

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

csharp/ql/test/resources/stubs/EntityFramework.cs renamed to csharp/ql/test/resources/stubs/EntityFrameworkCore.cs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,6 @@
44
using System.Threading.Tasks;
55
using System;
66

7-
namespace System.Data.Entity
8-
{
9-
public class DbSet
10-
{
11-
}
12-
13-
public class DbSet<TEntity> : IEnumerable<TEntity>
14-
{
15-
public void Add(TEntity t) { }
16-
public void AddRange(IEnumerable<TEntity> t) { }
17-
public void Attach(TEntity t) { }
18-
IEnumerator<TEntity> IEnumerable<TEntity>.GetEnumerator() => null;
19-
IEnumerator IEnumerable.GetEnumerator() => null;
20-
}
21-
22-
public class Database
23-
{
24-
public int ExecuteSqlQuery(string sql, params object[] parameters) => 0;
25-
public int ExecuteSqlCommand(string sql, params object[] parameters) => 0;
26-
public async Task ExecuteSqlCommandAsync(string sql, params object[] parameters) => throw null;
27-
public Infrastructure.DbRawSqlQuery<T> SqlQuery<T>(string sql, params object[] parameters) => null;
28-
}
29-
30-
public class DbContext : IDisposable
31-
{
32-
public void Dispose() { }
33-
public Database Database => null;
34-
public Infrastructure.DbRawSqlQuery<TElement> SqlQuery<TElement>(string sql, params object[] parameters) => null;
35-
public int SaveChanges() => 0;
36-
public System.Threading.Tasks.Task<int> SaveChangesAsync() => null;
37-
}
38-
}
39-
40-
namespace System.Data.Entity.Infrastructure
41-
{
42-
interface IDbAsyncEnumerable
43-
{
44-
}
45-
46-
public class DbRawSqlQuery<T> : IEnumerable<T>, IListSource, IDbAsyncEnumerable
47-
{
48-
IEnumerator<T> IEnumerable<T>.GetEnumerator() => null;
49-
IEnumerator IEnumerable.GetEnumerator() => null;
50-
bool IListSource.ContainsListCollection => false;
51-
IList IListSource.GetList() => null;
52-
}
53-
}
54-
557
namespace Microsoft.EntityFrameworkCore
568
{
579
public class DbSet<TEntity> : IEnumerable<TEntity>

0 commit comments

Comments
 (0)