Skip to content

Commit 173be0c

Browse files
authored
Merge pull request github#6144 from tamasvajk/feature/stub-dapper
C#: Change Dapper stub to nuget-based one (stub also System.Data.SqlC…
2 parents 686638a + b044708 commit 173be0c

File tree

8 files changed

+1411
-48
lines changed

8 files changed

+1411
-48
lines changed

csharp/ql/test/library-tests/frameworks/EntityFramework/EntityFramework.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// semmle-extractor-options: /r:System.Data.dll /r:System.ComponentModel.Primitives.dll /r:System.ComponentModel.TypeConverter.dll ${testdir}/../../../resources/stubs/EntityFramework.cs ${testdir}/../../../resources/stubs/System.Data.cs /r:System.ComponentModel.TypeConverter.dll /r:System.Data.Common.dll /r:System.Linq.dll
2-
2+
// semmle-extractor-options: ${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/System.ComponentModel.Annotations.cs ${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/System.ComponentModel.cs
33
using System.Collections.Generic;
44
using System.ComponentModel.DataAnnotations.Schema;
55
using System.Data.Entity;

csharp/ql/test/query-tests/Security Features/CWE-089/SqlInjection.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// semmle-extractor-options: /r:System.ComponentModel.Primitives.dll /r:System.ComponentModel.TypeConverter.dll /r:System.Data.Common.dll ${testdir}/../../../resources/stubs/EntityFramework.cs ${testdir}/../../../resources/stubs/System.Data.cs ${testdir}/../../../resources/stubs/System.Windows.cs ${testdir}/../../../resources/stubs/Dapper.cs /r:System.Linq.Expressions.dll
2-
1+
// semmle-extractor-options: /nostdlib /noconfig
2+
// semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/Dapper/2.0.90/Dapper.csproj
3+
// semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/System.Data.SqlClient/4.8.2/System.Data.SqlClient.csproj
4+
// semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFramework.cs
5+
// semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs
36
using System;
47

58
namespace System.Web.UI.WebControls
69
{
7-
public class TextBox
8-
{
9-
public string Text { get; set; }
10-
}
10+
public class TextBox { public string Text { get; set; } }
1111
}
1212

1313
namespace Test

csharp/ql/test/resources/stubs/Dapper.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)