Merge pull request #15154 from michaelnebel/csharp/morestubs

C#: Replace more hand written stubs with generated ones.
This commit is contained in:
Michael Nebel
2023-12-20 09:54:19 +01:00
committed by GitHub
24 changed files with 9252 additions and 259 deletions

View File

@@ -4,5 +4,6 @@ semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resour
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.24/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack/8.0.0/ServiceStack.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack.OrmLite.SqlServer/8.0.0/ServiceStack.OrmLite.SqlServer.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.4.4/EntityFramework.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFramework.cs
semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFrameworkCore.cs

View File

@@ -141,6 +141,35 @@ summary
| System.Data.Entity;DbContext;false;SaveChangesAsync;();;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;();;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Name]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;();;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Name]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.AddressId];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.AddressId]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.PersonId];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.PersonId]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Name]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.PersonAddresses].Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Name]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Addresses#ReturnValue.Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Address].Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Addresses].Element.Property[EFTests.Address.Street]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Id];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Id];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Id]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.PersonAddresses#ReturnValue.Element.Property[EFTests.PersonAddressMap.Person].Property[EFTests.Person.Name]];value;manual |
| System.Data.Entity;DbContext;false;SaveChangesAsync;(System.Threading.CancellationToken);;Argument[this].Property[EFTests.MyContext.Persons].Element.Property[EFTests.Person.Name];SyntheticGlobal[EFTests.MyContext.Persons#ReturnValue.Element.Property[EFTests.Person.Name]];value;manual |
neutral
sourceNode
sinkNode

View File

@@ -1,2 +1,4 @@
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
semmle-extractor-options: ${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/System.ComponentModel.Annotations.cs ${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/System.ComponentModel.cs
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.4.4/EntityFramework.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFrameworkCore.cs

View File

@@ -1,10 +1,10 @@
sqlExpressions
| sql.cs:44:23:44:44 | object creation of type MySqlCommand | sql.cs:44:40:44:43 | access to parameter text |
| sql.cs:45:13:45:38 | ... = ... | sql.cs:45:35:45:38 | access to parameter text |
| sql.cs:46:13:46:34 | object creation of type MySqlCommand | sql.cs:46:30:46:33 | access to parameter text |
| sql.cs:46:13:46:53 | ... = ... | sql.cs:46:50:46:53 | access to parameter text |
| sql.cs:54:23:54:44 | object creation of type MySqlCommand | sql.cs:54:40:54:43 | access to parameter text |
| sql.cs:55:13:55:38 | ... = ... | sql.cs:55:35:55:38 | access to parameter text |
| sql.cs:56:13:56:34 | object creation of type MySqlCommand | sql.cs:56:30:56:33 | access to parameter text |
| sql.cs:56:13:56:53 | ... = ... | sql.cs:56:50:56:53 | access to parameter text |
sqlCsvSinks
| sql.cs:43:46:43:65 | object creation of type SqlCommand | sql.cs:43:61:43:64 | access to parameter text |
| sql.cs:47:13:47:42 | object creation of type SqlDataAdapter | sql.cs:47:32:47:35 | access to parameter text |
| sql.cs:48:13:48:47 | call to method ExecuteScalar | sql.cs:48:43:48:46 | access to parameter text |
| sql.cs:49:13:49:75 | call to method ExecuteScalar | sql.cs:49:71:49:74 | access to parameter text |
| sql.cs:53:46:53:65 | object creation of type SqlCommand | sql.cs:53:61:53:64 | access to parameter text |
| sql.cs:57:13:57:50 | object creation of type SqlDataAdapter | sql.cs:57:32:57:35 | access to parameter text |
| sql.cs:58:13:58:47 | call to method ExecuteScalar | sql.cs:58:43:58:46 | access to parameter text |
| sql.cs:59:13:59:75 | call to method ExecuteScalar | sql.cs:59:71:59:74 | access to parameter text |

View File

@@ -1,3 +1,3 @@
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Data.cs
semmle-extractor-options: ${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/System.ComponentModel.cs
semmle-extractor-options: /r:System.ComponentModel.TypeConverter.dll /r:System.Data.Common.dll
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.8.5/System.Data.SqlClient.csproj

View File

@@ -8,11 +8,21 @@ namespace MySql.Data.MySqlClient
{
public MySqlCommand(string commandText) { }
public void Cancel() => throw null;
public string CommandText { get; set; }
public IDataReader ExecuteReader() => throw null;
public int CommandTimeout { get; set; }
public CommandType CommandType { get; set; }
public IDataParameterCollection Parameters { get; set; }
public IDbConnection Connection { get; set; }
public IDbDataParameter CreateParameter() => throw null;
public int ExecuteNonQuery() => throw null;
public IDataReader ExecuteReader() => throw null;
public IDataReader ExecuteReader(CommandBehavior behavior) => throw null;
public object ExecuteScalar() => throw null;
public IDataParameterCollection Parameters { get; }
public void Prepare() => throw null;
public IDbTransaction Transaction { get; set; }
public UpdateRowSource UpdatedRowSource { get; set; }
public void Dispose() => throw null;
}
public class MySqlHelper
@@ -44,7 +54,7 @@ namespace SqlClientTests
command = new MySqlCommand(text);
command.CommandText = text;
new MySqlCommand(text).CommandText = text;
new SqlDataAdapter(text, null);
new SqlDataAdapter(text, string.Empty);
MySqlHelper.ExecuteScalar("", text);
SqlHelper.ExecuteScalar("", System.Data.CommandType.Text, text);
}

View File

@@ -1 +1,3 @@
semmle-extractor-options: ${testdir}/../../../../../resources/stubs/EntityFramework.cs /r:System.ComponentModel.TypeConverter.dll
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/EntityFramework/6.4.4/EntityFramework.csproj

View File

@@ -1 +1,4 @@
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
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.OleDb/8.0.0/System.Data.OleDb.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/EntityFramework/6.4.4/EntityFramework.csproj

View File

@@ -4,54 +4,6 @@ using System.ComponentModel;
using System.Threading.Tasks;
using System;
namespace System.Data.Entity
{
public class DbSet
{
}
public class DbSet<TEntity> : IEnumerable<TEntity>
{
public void Add(TEntity t) { }
public void AddRange(IEnumerable<TEntity> t) { }
public void Attach(TEntity t) { }
IEnumerator<TEntity> IEnumerable<TEntity>.GetEnumerator() => null;
IEnumerator IEnumerable.GetEnumerator() => null;
}
public class Database
{
public int ExecuteSqlQuery(string sql, params object[] parameters) => 0;
public int ExecuteSqlCommand(string sql, params object[] parameters) => 0;
public async Task ExecuteSqlCommandAsync(string sql, params object[] parameters) => throw null;
public Infrastructure.DbRawSqlQuery<T> SqlQuery<T>(string sql, params object[] parameters) => null;
}
public class DbContext : IDisposable
{
public void Dispose() { }
public Database Database => null;
public Infrastructure.DbRawSqlQuery<TElement> SqlQuery<TElement>(string sql, params object[] parameters) => null;
public int SaveChanges() => 0;
public System.Threading.Tasks.Task<int> SaveChangesAsync() => null;
}
}
namespace System.Data.Entity.Infrastructure
{
interface IDbAsyncEnumerable
{
}
public class DbRawSqlQuery<T> : IEnumerable<T>, IListSource, IDbAsyncEnumerable
{
IEnumerator<T> IEnumerable<T>.GetEnumerator() => null;
IEnumerator IEnumerable.GetEnumerator() => null;
bool IListSource.ContainsListCollection => false;
IList IListSource.GetList() => null;
}
}
namespace Microsoft.EntityFrameworkCore
{
public class DbSet<TEntity> : IEnumerable<TEntity>

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../System.Diagnostics.EventLog/8.0.0/System.Diagnostics.EventLog.csproj" />
<ProjectReference Include="../../System.Security.Cryptography.ProtectedData/8.0.0/System.Security.Cryptography.ProtectedData.csproj" />
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,449 @@
// This file contains auto-generated code.
// Generated from `System.Data.OleDb, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`.
namespace System
{
namespace Data
{
namespace OleDb
{
public sealed class OleDbCommand : System.Data.Common.DbCommand, System.ICloneable, System.Data.IDbCommand, System.IDisposable
{
public override void Cancel() => throw null;
public System.Data.OleDb.OleDbCommand Clone() => throw null;
object System.ICloneable.Clone() => throw null;
public override string CommandText { get => throw null; set { } }
public override int CommandTimeout { get => throw null; set { } }
public override System.Data.CommandType CommandType { get => throw null; set { } }
public System.Data.OleDb.OleDbConnection Connection { get => throw null; set { } }
protected override System.Data.Common.DbParameter CreateDbParameter() => throw null;
public System.Data.OleDb.OleDbParameter CreateParameter() => throw null;
public OleDbCommand() => throw null;
public OleDbCommand(string cmdText) => throw null;
public OleDbCommand(string cmdText, System.Data.OleDb.OleDbConnection connection) => throw null;
public OleDbCommand(string cmdText, System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction transaction) => throw null;
protected override System.Data.Common.DbConnection DbConnection { get => throw null; set { } }
protected override System.Data.Common.DbParameterCollection DbParameterCollection { get => throw null; }
protected override System.Data.Common.DbTransaction DbTransaction { get => throw null; set { } }
public override bool DesignTimeVisible { get => throw null; set { } }
protected override void Dispose(bool disposing) => throw null;
protected override System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) => throw null;
public override int ExecuteNonQuery() => throw null;
public System.Data.OleDb.OleDbDataReader ExecuteReader() => throw null;
public System.Data.OleDb.OleDbDataReader ExecuteReader(System.Data.CommandBehavior behavior) => throw null;
System.Data.IDataReader System.Data.IDbCommand.ExecuteReader() => throw null;
System.Data.IDataReader System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior behavior) => throw null;
public override object ExecuteScalar() => throw null;
public System.Data.OleDb.OleDbParameterCollection Parameters { get => throw null; }
public override void Prepare() => throw null;
public void ResetCommandTimeout() => throw null;
public System.Data.OleDb.OleDbTransaction Transaction { get => throw null; set { } }
public override System.Data.UpdateRowSource UpdatedRowSource { get => throw null; set { } }
}
public sealed class OleDbCommandBuilder : System.Data.Common.DbCommandBuilder
{
protected override void ApplyParameterInfo(System.Data.Common.DbParameter parameter, System.Data.DataRow datarow, System.Data.StatementType statementType, bool whereClause) => throw null;
public OleDbCommandBuilder() => throw null;
public OleDbCommandBuilder(System.Data.OleDb.OleDbDataAdapter adapter) => throw null;
public System.Data.OleDb.OleDbDataAdapter DataAdapter { get => throw null; set { } }
public static void DeriveParameters(System.Data.OleDb.OleDbCommand command) => throw null;
public System.Data.OleDb.OleDbCommand GetDeleteCommand() => throw null;
public System.Data.OleDb.OleDbCommand GetDeleteCommand(bool useColumnsForParameterNames) => throw null;
public System.Data.OleDb.OleDbCommand GetInsertCommand() => throw null;
public System.Data.OleDb.OleDbCommand GetInsertCommand(bool useColumnsForParameterNames) => throw null;
protected override string GetParameterName(int parameterOrdinal) => throw null;
protected override string GetParameterName(string parameterName) => throw null;
protected override string GetParameterPlaceholder(int parameterOrdinal) => throw null;
public System.Data.OleDb.OleDbCommand GetUpdateCommand() => throw null;
public System.Data.OleDb.OleDbCommand GetUpdateCommand(bool useColumnsForParameterNames) => throw null;
public override string QuoteIdentifier(string unquotedIdentifier) => throw null;
public string QuoteIdentifier(string unquotedIdentifier, System.Data.OleDb.OleDbConnection connection) => throw null;
protected override void SetRowUpdatingHandler(System.Data.Common.DbDataAdapter adapter) => throw null;
public override string UnquoteIdentifier(string quotedIdentifier) => throw null;
public string UnquoteIdentifier(string quotedIdentifier, System.Data.OleDb.OleDbConnection connection) => throw null;
}
public sealed class OleDbConnection : System.Data.Common.DbConnection, System.ICloneable, System.Data.IDbConnection, System.IDisposable
{
protected override System.Data.Common.DbTransaction BeginDbTransaction(System.Data.IsolationLevel isolationLevel) => throw null;
public System.Data.OleDb.OleDbTransaction BeginTransaction() => throw null;
public System.Data.OleDb.OleDbTransaction BeginTransaction(System.Data.IsolationLevel isolationLevel) => throw null;
public override void ChangeDatabase(string value) => throw null;
object System.ICloneable.Clone() => throw null;
public override void Close() => throw null;
public override string ConnectionString { get => throw null; set { } }
public override int ConnectionTimeout { get => throw null; }
public System.Data.OleDb.OleDbCommand CreateCommand() => throw null;
protected override System.Data.Common.DbCommand CreateDbCommand() => throw null;
public OleDbConnection() => throw null;
public OleDbConnection(string connectionString) => throw null;
public override string Database { get => throw null; }
public override string DataSource { get => throw null; }
protected override void Dispose(bool disposing) => throw null;
public override void EnlistTransaction(System.Transactions.Transaction transaction) => throw null;
public System.Data.DataTable GetOleDbSchemaTable(System.Guid schema, object[] restrictions) => throw null;
public override System.Data.DataTable GetSchema() => throw null;
public override System.Data.DataTable GetSchema(string collectionName) => throw null;
public override System.Data.DataTable GetSchema(string collectionName, string[] restrictionValues) => throw null;
public event System.Data.OleDb.OleDbInfoMessageEventHandler InfoMessage;
public override void Open() => throw null;
public string Provider { get => throw null; }
public static void ReleaseObjectPool() => throw null;
public void ResetState() => throw null;
public override string ServerVersion { get => throw null; }
public override System.Data.ConnectionState State { get => throw null; }
}
public sealed class OleDbConnectionStringBuilder : System.Data.Common.DbConnectionStringBuilder
{
public override void Clear() => throw null;
public override bool ContainsKey(string keyword) => throw null;
public OleDbConnectionStringBuilder() => throw null;
public OleDbConnectionStringBuilder(string connectionString) => throw null;
public string DataSource { get => throw null; set { } }
public string FileName { get => throw null; set { } }
public override System.Collections.ICollection Keys { get => throw null; }
public int OleDbServices { get => throw null; set { } }
public bool PersistSecurityInfo { get => throw null; set { } }
public string Provider { get => throw null; set { } }
public override bool Remove(string keyword) => throw null;
public override object this[string keyword] { get => throw null; set { } }
public override bool TryGetValue(string keyword, out object value) => throw null;
}
public sealed class OleDbDataAdapter : System.Data.Common.DbDataAdapter, System.ICloneable, System.Data.IDataAdapter, System.Data.IDbDataAdapter
{
object System.ICloneable.Clone() => throw null;
protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) => throw null;
protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) => throw null;
public OleDbDataAdapter() => throw null;
public OleDbDataAdapter(System.Data.OleDb.OleDbCommand selectCommand) => throw null;
public OleDbDataAdapter(string selectCommandText, System.Data.OleDb.OleDbConnection selectConnection) => throw null;
public OleDbDataAdapter(string selectCommandText, string selectConnectionString) => throw null;
public System.Data.OleDb.OleDbCommand DeleteCommand { get => throw null; set { } }
System.Data.IDbCommand System.Data.IDbDataAdapter.DeleteCommand { get => throw null; set { } }
public int Fill(System.Data.DataSet dataSet, object ADODBRecordSet, string srcTable) => throw null;
public int Fill(System.Data.DataTable dataTable, object ADODBRecordSet) => throw null;
public System.Data.OleDb.OleDbCommand InsertCommand { get => throw null; set { } }
System.Data.IDbCommand System.Data.IDbDataAdapter.InsertCommand { get => throw null; set { } }
protected override void OnRowUpdated(System.Data.Common.RowUpdatedEventArgs value) => throw null;
protected override void OnRowUpdating(System.Data.Common.RowUpdatingEventArgs value) => throw null;
public event System.Data.OleDb.OleDbRowUpdatedEventHandler RowUpdated;
public event System.Data.OleDb.OleDbRowUpdatingEventHandler RowUpdating;
public System.Data.OleDb.OleDbCommand SelectCommand { get => throw null; set { } }
System.Data.IDbCommand System.Data.IDbDataAdapter.SelectCommand { get => throw null; set { } }
System.Data.IDbCommand System.Data.IDbDataAdapter.UpdateCommand { get => throw null; set { } }
public System.Data.OleDb.OleDbCommand UpdateCommand { get => throw null; set { } }
}
public sealed class OleDbDataReader : System.Data.Common.DbDataReader
{
public override void Close() => throw null;
public override int Depth { get => throw null; }
public override int FieldCount { get => throw null; }
public override bool GetBoolean(int ordinal) => throw null;
public override byte GetByte(int ordinal) => throw null;
public override long GetBytes(int ordinal, long dataIndex, byte[] buffer, int bufferIndex, int length) => throw null;
public override char GetChar(int ordinal) => throw null;
public override long GetChars(int ordinal, long dataIndex, char[] buffer, int bufferIndex, int length) => throw null;
public System.Data.OleDb.OleDbDataReader GetData(int ordinal) => throw null;
public override string GetDataTypeName(int index) => throw null;
public override System.DateTime GetDateTime(int ordinal) => throw null;
protected override System.Data.Common.DbDataReader GetDbDataReader(int ordinal) => throw null;
public override decimal GetDecimal(int ordinal) => throw null;
public override double GetDouble(int ordinal) => throw null;
public override System.Collections.IEnumerator GetEnumerator() => throw null;
public override System.Type GetFieldType(int index) => throw null;
public override float GetFloat(int ordinal) => throw null;
public override System.Guid GetGuid(int ordinal) => throw null;
public override short GetInt16(int ordinal) => throw null;
public override int GetInt32(int ordinal) => throw null;
public override long GetInt64(int ordinal) => throw null;
public override string GetName(int index) => throw null;
public override int GetOrdinal(string name) => throw null;
public override System.Data.DataTable GetSchemaTable() => throw null;
public override string GetString(int ordinal) => throw null;
public System.TimeSpan GetTimeSpan(int ordinal) => throw null;
public override object GetValue(int ordinal) => throw null;
public override int GetValues(object[] values) => throw null;
public override bool HasRows { get => throw null; }
public override bool IsClosed { get => throw null; }
public override bool IsDBNull(int ordinal) => throw null;
public override bool NextResult() => throw null;
public override bool Read() => throw null;
public override int RecordsAffected { get => throw null; }
public override object this[int index] { get => throw null; }
public override object this[string name] { get => throw null; }
public override int VisibleFieldCount { get => throw null; }
}
public sealed class OleDbEnumerator
{
public OleDbEnumerator() => throw null;
public System.Data.DataTable GetElements() => throw null;
public static System.Data.OleDb.OleDbDataReader GetEnumerator(System.Type type) => throw null;
public static System.Data.OleDb.OleDbDataReader GetRootEnumerator() => throw null;
}
public sealed class OleDbError
{
public string Message { get => throw null; }
public int NativeError { get => throw null; }
public string Source { get => throw null; }
public string SQLState { get => throw null; }
public override string ToString() => throw null;
}
public sealed class OleDbErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable
{
public void CopyTo(System.Array array, int index) => throw null;
public void CopyTo(System.Data.OleDb.OleDbError[] array, int index) => throw null;
public int Count { get => throw null; }
public System.Collections.IEnumerator GetEnumerator() => throw null;
bool System.Collections.ICollection.IsSynchronized { get => throw null; }
object System.Collections.ICollection.SyncRoot { get => throw null; }
public System.Data.OleDb.OleDbError this[int index] { get => throw null; }
}
public sealed class OleDbException : System.Data.Common.DbException
{
public override int ErrorCode { get => throw null; }
public System.Data.OleDb.OleDbErrorCollection Errors { get => throw null; }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context) => throw null;
}
public sealed class OleDbFactory : System.Data.Common.DbProviderFactory
{
public override System.Data.Common.DbCommand CreateCommand() => throw null;
public override System.Data.Common.DbCommandBuilder CreateCommandBuilder() => throw null;
public override System.Data.Common.DbConnection CreateConnection() => throw null;
public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder() => throw null;
public override System.Data.Common.DbDataAdapter CreateDataAdapter() => throw null;
public override System.Data.Common.DbParameter CreateParameter() => throw null;
public static readonly System.Data.OleDb.OleDbFactory Instance;
}
public sealed class OleDbInfoMessageEventArgs : System.EventArgs
{
public int ErrorCode { get => throw null; }
public System.Data.OleDb.OleDbErrorCollection Errors { get => throw null; }
public string Message { get => throw null; }
public string Source { get => throw null; }
public override string ToString() => throw null;
}
public delegate void OleDbInfoMessageEventHandler(object sender, System.Data.OleDb.OleDbInfoMessageEventArgs e);
public enum OleDbLiteral
{
Invalid = 0,
Binary_Literal = 1,
Catalog_Name = 2,
Catalog_Separator = 3,
Char_Literal = 4,
Column_Alias = 5,
Column_Name = 6,
Correlation_Name = 7,
Cursor_Name = 8,
Escape_Percent_Prefix = 9,
Escape_Underscore_Prefix = 10,
Index_Name = 11,
Like_Percent = 12,
Like_Underscore = 13,
Procedure_Name = 14,
Quote_Prefix = 15,
Schema_Name = 16,
Table_Name = 17,
Text_Command = 18,
User_Name = 19,
View_Name = 20,
Cube_Name = 21,
Dimension_Name = 22,
Hierarchy_Name = 23,
Level_Name = 24,
Member_Name = 25,
Property_Name = 26,
Schema_Separator = 27,
Quote_Suffix = 28,
Escape_Percent_Suffix = 29,
Escape_Underscore_Suffix = 30,
}
public static class OleDbMetaDataCollectionNames
{
public static readonly string Catalogs;
public static readonly string Collations;
public static readonly string Columns;
public static readonly string Indexes;
public static readonly string ProcedureColumns;
public static readonly string ProcedureParameters;
public static readonly string Procedures;
public static readonly string Tables;
public static readonly string Views;
}
public static class OleDbMetaDataColumnNames
{
public static readonly string BooleanFalseLiteral;
public static readonly string BooleanTrueLiteral;
public static readonly string DateTimeDigits;
public static readonly string NativeDataType;
}
public sealed class OleDbParameter : System.Data.Common.DbParameter, System.ICloneable, System.Data.IDataParameter, System.Data.IDbDataParameter
{
object System.ICloneable.Clone() => throw null;
public OleDbParameter() => throw null;
public OleDbParameter(string name, System.Data.OleDb.OleDbType dataType) => throw null;
public OleDbParameter(string name, System.Data.OleDb.OleDbType dataType, int size) => throw null;
public OleDbParameter(string parameterName, System.Data.OleDb.OleDbType dbType, int size, System.Data.ParameterDirection direction, bool isNullable, byte precision, byte scale, string srcColumn, System.Data.DataRowVersion srcVersion, object value) => throw null;
public OleDbParameter(string parameterName, System.Data.OleDb.OleDbType dbType, int size, System.Data.ParameterDirection direction, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, bool sourceColumnNullMapping, object value) => throw null;
public OleDbParameter(string name, System.Data.OleDb.OleDbType dataType, int size, string srcColumn) => throw null;
public OleDbParameter(string name, object value) => throw null;
public override System.Data.DbType DbType { get => throw null; set { } }
public override System.Data.ParameterDirection Direction { get => throw null; set { } }
public override bool IsNullable { get => throw null; set { } }
public System.Data.OleDb.OleDbType OleDbType { get => throw null; set { } }
public override string ParameterName { get => throw null; set { } }
public byte Precision { get => throw null; set { } }
public override void ResetDbType() => throw null;
public void ResetOleDbType() => throw null;
public byte Scale { get => throw null; set { } }
public override int Size { get => throw null; set { } }
public override string SourceColumn { get => throw null; set { } }
public override bool SourceColumnNullMapping { get => throw null; set { } }
public override System.Data.DataRowVersion SourceVersion { get => throw null; set { } }
public override string ToString() => throw null;
public override object Value { get => throw null; set { } }
}
public sealed class OleDbParameterCollection : System.Data.Common.DbParameterCollection
{
public System.Data.OleDb.OleDbParameter Add(System.Data.OleDb.OleDbParameter value) => throw null;
public override int Add(object value) => throw null;
public System.Data.OleDb.OleDbParameter Add(string parameterName, System.Data.OleDb.OleDbType oleDbType) => throw null;
public System.Data.OleDb.OleDbParameter Add(string parameterName, System.Data.OleDb.OleDbType oleDbType, int size) => throw null;
public System.Data.OleDb.OleDbParameter Add(string parameterName, System.Data.OleDb.OleDbType oleDbType, int size, string sourceColumn) => throw null;
public System.Data.OleDb.OleDbParameter Add(string parameterName, object value) => throw null;
public override void AddRange(System.Array values) => throw null;
public void AddRange(System.Data.OleDb.OleDbParameter[] values) => throw null;
public System.Data.OleDb.OleDbParameter AddWithValue(string parameterName, object value) => throw null;
public override void Clear() => throw null;
public bool Contains(System.Data.OleDb.OleDbParameter value) => throw null;
public override bool Contains(object value) => throw null;
public override bool Contains(string value) => throw null;
public override void CopyTo(System.Array array, int index) => throw null;
public void CopyTo(System.Data.OleDb.OleDbParameter[] array, int index) => throw null;
public override int Count { get => throw null; }
public override System.Collections.IEnumerator GetEnumerator() => throw null;
protected override System.Data.Common.DbParameter GetParameter(int index) => throw null;
protected override System.Data.Common.DbParameter GetParameter(string parameterName) => throw null;
public int IndexOf(System.Data.OleDb.OleDbParameter value) => throw null;
public override int IndexOf(object value) => throw null;
public override int IndexOf(string parameterName) => throw null;
public void Insert(int index, System.Data.OleDb.OleDbParameter value) => throw null;
public override void Insert(int index, object value) => throw null;
public override bool IsFixedSize { get => throw null; }
public override bool IsReadOnly { get => throw null; }
public override bool IsSynchronized { get => throw null; }
public void Remove(System.Data.OleDb.OleDbParameter value) => throw null;
public override void Remove(object value) => throw null;
public override void RemoveAt(int index) => throw null;
public override void RemoveAt(string parameterName) => throw null;
protected override void SetParameter(int index, System.Data.Common.DbParameter value) => throw null;
protected override void SetParameter(string parameterName, System.Data.Common.DbParameter value) => throw null;
public override object SyncRoot { get => throw null; }
public System.Data.OleDb.OleDbParameter this[int index] { get => throw null; set { } }
public System.Data.OleDb.OleDbParameter this[string parameterName] { get => throw null; set { } }
}
public sealed class OleDbRowUpdatedEventArgs : System.Data.Common.RowUpdatedEventArgs
{
public System.Data.OleDb.OleDbCommand Command { get => throw null; }
public OleDbRowUpdatedEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) : base(default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) => throw null;
}
public delegate void OleDbRowUpdatedEventHandler(object sender, System.Data.OleDb.OleDbRowUpdatedEventArgs e);
public sealed class OleDbRowUpdatingEventArgs : System.Data.Common.RowUpdatingEventArgs
{
protected override System.Data.IDbCommand BaseCommand { get => throw null; set { } }
public System.Data.OleDb.OleDbCommand Command { get => throw null; set { } }
public OleDbRowUpdatingEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) : base(default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) => throw null;
}
public delegate void OleDbRowUpdatingEventHandler(object sender, System.Data.OleDb.OleDbRowUpdatingEventArgs e);
public sealed class OleDbSchemaGuid
{
public static readonly System.Guid Assertions;
public static readonly System.Guid Catalogs;
public static readonly System.Guid Character_Sets;
public static readonly System.Guid Check_Constraints;
public static readonly System.Guid Check_Constraints_By_Table;
public static readonly System.Guid Collations;
public static readonly System.Guid Column_Domain_Usage;
public static readonly System.Guid Column_Privileges;
public static readonly System.Guid Columns;
public static readonly System.Guid Constraint_Column_Usage;
public static readonly System.Guid Constraint_Table_Usage;
public OleDbSchemaGuid() => throw null;
public static readonly System.Guid DbInfoKeywords;
public static readonly System.Guid DbInfoLiterals;
public static readonly System.Guid Foreign_Keys;
public static readonly System.Guid Indexes;
public static readonly System.Guid Key_Column_Usage;
public static readonly System.Guid Primary_Keys;
public static readonly System.Guid Procedure_Columns;
public static readonly System.Guid Procedure_Parameters;
public static readonly System.Guid Procedures;
public static readonly System.Guid Provider_Types;
public static readonly System.Guid Referential_Constraints;
public static readonly System.Guid SchemaGuids;
public static readonly System.Guid Schemata;
public static readonly System.Guid Sql_Languages;
public static readonly System.Guid Statistics;
public static readonly System.Guid Table_Constraints;
public static readonly System.Guid Table_Privileges;
public static readonly System.Guid Table_Statistics;
public static readonly System.Guid Tables;
public static readonly System.Guid Tables_Info;
public static readonly System.Guid Translations;
public static readonly System.Guid Trustee;
public static readonly System.Guid Usage_Privileges;
public static readonly System.Guid View_Column_Usage;
public static readonly System.Guid View_Table_Usage;
public static readonly System.Guid Views;
}
public sealed class OleDbTransaction : System.Data.Common.DbTransaction
{
public System.Data.OleDb.OleDbTransaction Begin() => throw null;
public System.Data.OleDb.OleDbTransaction Begin(System.Data.IsolationLevel isolevel) => throw null;
public override void Commit() => throw null;
public System.Data.OleDb.OleDbConnection Connection { get => throw null; }
protected override System.Data.Common.DbConnection DbConnection { get => throw null; }
protected override void Dispose(bool disposing) => throw null;
public override System.Data.IsolationLevel IsolationLevel { get => throw null; }
public override void Rollback() => throw null;
}
public enum OleDbType
{
Empty = 0,
SmallInt = 2,
Integer = 3,
Single = 4,
Double = 5,
Currency = 6,
Date = 7,
BSTR = 8,
IDispatch = 9,
Error = 10,
Boolean = 11,
Variant = 12,
IUnknown = 13,
Decimal = 14,
TinyInt = 16,
UnsignedTinyInt = 17,
UnsignedSmallInt = 18,
UnsignedInt = 19,
BigInt = 20,
UnsignedBigInt = 21,
Filetime = 64,
Guid = 72,
Binary = 128,
Char = 129,
WChar = 130,
Numeric = 131,
DBDate = 133,
DBTime = 134,
DBTimeStamp = 135,
PropVariant = 138,
VarNumeric = 139,
VarChar = 200,
LongVarChar = 201,
VarWChar = 202,
LongVarWChar = 203,
VarBinary = 204,
LongVarBinary = 205,
}
}
}
}

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../System.Configuration.ConfigurationManager/6.0.0/System.Configuration.ConfigurationManager.csproj" />
<ProjectReference Include="../../System.Diagnostics.PerformanceCounter/8.0.0/System.Diagnostics.PerformanceCounter.csproj" />
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -1,187 +0,0 @@
using System;
namespace System.Data.SqlClient
{
public class SqlConnection : Common.DbConnection, IDisposable
{
public SqlConnection() { }
public SqlConnection(string connectionString) { }
public void Dispose() { }
public override string ConnectionString { get; set; }
public override void Open() { }
public override void Close() { }
}
public class SqlCommand : Common.DbCommand
{
public SqlCommand(string s) { }
public SqlCommand(string s, SqlConnection t) { }
public SqlDataReader ExecuteReader() => null;
}
public class SqlDataReader : Common.DbDataReader, IDataReader, IDataRecord
{
public override string GetString(int i) => "";
}
public class SqlDataAdapter : Common.DbDataAdapter, IDbDataAdapter, IDataAdapter
{
public SqlDataAdapter(string a, SqlConnection b) { }
public void Fill(DataSet ds) { }
public SqlCommand SelectCommand { get; set; }
}
public class SqlParameter : Common.DbParameter, IDbDataParameter, IDataParameter
{
public SqlParameter(string s, object o) { }
}
public class SqlParameterCollection : Common.DbParameterCollection
{
}
public class SqlConnectionStringBuilder : Common.DbConnectionStringBuilder
{
}
public class SqlException : Common.DbException
{
}
}
namespace System.Data
{
public interface IDbDataParameter
{
}
public interface IDbConnection
{
string ConnectionString { get; set; }
}
public interface IDataRecord
{
string GetString(int i);
}
public interface IDbCommand
{
IDataReader ExecuteReader();
CommandType CommandType { get; set; }
IDataParameterCollection Parameters { get; set; }
string CommandText { get; set; }
}
public interface IDataReader
{
bool Read();
void Close();
string GetString(int i);
}
public interface IDataAdapter
{
}
public interface IDbDataAdapter
{
}
public interface IDataParameter
{
}
public interface IDataParameterCollection
{
void Add(object obj);
}
}
namespace System.Data.Common
{
public abstract class DbConnection : IDbConnection
{
public virtual string ConnectionString { get; set; }
string IDbConnection.ConnectionString { get; set; }
public abstract void Open();
public abstract void Close();
}
public class DbDataReader : IDataReader
{
public bool Read() => false;
public void Close() { }
public virtual string GetString(int i) => "";
}
public abstract class DbCommand : IDbCommand, IDisposable
{
public DbDataReader ExecuteReader() => null;
public CommandType CommandType { get; set; }
public IDataParameterCollection Parameters { get; set; }
IDataReader IDbCommand.ExecuteReader() => null;
public void Dispose() { }
public string CommandText { get; set; }
}
public class DbDataAdapter : IDataAdapter, IDbDataAdapter
{
}
public class DbParameter : IDbDataParameter, IDataParameter
{
}
public class DbParameterCollection : IDataParameterCollection
{
public void Add(object obj) { }
}
public class DbConnectionStringBuilder
{
public virtual object this[string keyword] { get => null; set { } }
public virtual string ConnectionString { get; set; }
}
public class DbException : Exception
{
}
}
namespace System.Data.OleDb
{
public class OleDbConnection : Common.DbConnection, IDisposable
{
public OleDbConnection(string s) { }
void IDisposable.Dispose() { }
public override void Open() { }
public override void Close() { }
}
public class OleDbDataReader : Common.DbDataReader
{
public bool Read() => false;
public void Close()
{
}
public string GetString(int x) => null;
public object this[string s] => null;
}
public class OleDbCommand : Common.DbCommand
{
public OleDbCommand(string e, OleDbConnection c)
{
}
public OleDbDataReader ExecuteReader() => null;
}
}

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,275 @@
// This file contains auto-generated code.
// Generated from `System.Diagnostics.PerformanceCounter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`.
namespace System
{
namespace Diagnostics
{
public class CounterCreationData
{
public string CounterHelp { get => throw null; set { } }
public string CounterName { get => throw null; set { } }
public System.Diagnostics.PerformanceCounterType CounterType { get => throw null; set { } }
public CounterCreationData() => throw null;
public CounterCreationData(string counterName, string counterHelp, System.Diagnostics.PerformanceCounterType counterType) => throw null;
}
public class CounterCreationDataCollection : System.Collections.CollectionBase
{
public int Add(System.Diagnostics.CounterCreationData value) => throw null;
public void AddRange(System.Diagnostics.CounterCreationDataCollection value) => throw null;
public void AddRange(System.Diagnostics.CounterCreationData[] value) => throw null;
public bool Contains(System.Diagnostics.CounterCreationData value) => throw null;
public void CopyTo(System.Diagnostics.CounterCreationData[] array, int index) => throw null;
public CounterCreationDataCollection() => throw null;
public CounterCreationDataCollection(System.Diagnostics.CounterCreationDataCollection value) => throw null;
public CounterCreationDataCollection(System.Diagnostics.CounterCreationData[] value) => throw null;
public int IndexOf(System.Diagnostics.CounterCreationData value) => throw null;
public void Insert(int index, System.Diagnostics.CounterCreationData value) => throw null;
protected override void OnValidate(object value) => throw null;
public virtual void Remove(System.Diagnostics.CounterCreationData value) => throw null;
public System.Diagnostics.CounterCreationData this[int index] { get => throw null; set { } }
}
public struct CounterSample : System.IEquatable<System.Diagnostics.CounterSample>
{
public long BaseValue { get => throw null; }
public static float Calculate(System.Diagnostics.CounterSample counterSample) => throw null;
public static float Calculate(System.Diagnostics.CounterSample counterSample, System.Diagnostics.CounterSample nextCounterSample) => throw null;
public long CounterFrequency { get => throw null; }
public long CounterTimeStamp { get => throw null; }
public System.Diagnostics.PerformanceCounterType CounterType { get => throw null; }
public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, System.Diagnostics.PerformanceCounterType counterType) => throw null;
public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, System.Diagnostics.PerformanceCounterType counterType, long counterTimeStamp) => throw null;
public static System.Diagnostics.CounterSample Empty;
public bool Equals(System.Diagnostics.CounterSample sample) => throw null;
public override bool Equals(object o) => throw null;
public override int GetHashCode() => throw null;
public static bool operator ==(System.Diagnostics.CounterSample a, System.Diagnostics.CounterSample b) => throw null;
public static bool operator !=(System.Diagnostics.CounterSample a, System.Diagnostics.CounterSample b) => throw null;
public long RawValue { get => throw null; }
public long SystemFrequency { get => throw null; }
public long TimeStamp { get => throw null; }
public long TimeStamp100nSec { get => throw null; }
}
public static class CounterSampleCalculator
{
public static float ComputeCounterValue(System.Diagnostics.CounterSample newSample) => throw null;
public static float ComputeCounterValue(System.Diagnostics.CounterSample oldSample, System.Diagnostics.CounterSample newSample) => throw null;
}
public interface ICollectData
{
void CloseData();
void CollectData(int id, nint valueName, nint data, int totalBytes, out nint res);
}
public class InstanceData
{
public InstanceData(string instanceName, System.Diagnostics.CounterSample sample) => throw null;
public string InstanceName { get => throw null; }
public long RawValue { get => throw null; }
public System.Diagnostics.CounterSample Sample { get => throw null; }
}
public class InstanceDataCollection : System.Collections.DictionaryBase
{
public bool Contains(string instanceName) => throw null;
public void CopyTo(System.Diagnostics.InstanceData[] instances, int index) => throw null;
public string CounterName { get => throw null; }
public InstanceDataCollection(string counterName) => throw null;
public System.Collections.ICollection Keys { get => throw null; }
public System.Diagnostics.InstanceData this[string instanceName] { get => throw null; }
public System.Collections.ICollection Values { get => throw null; }
}
public class InstanceDataCollectionCollection : System.Collections.DictionaryBase
{
public bool Contains(string counterName) => throw null;
public void CopyTo(System.Diagnostics.InstanceDataCollection[] counters, int index) => throw null;
public InstanceDataCollectionCollection() => throw null;
public System.Collections.ICollection Keys { get => throw null; }
public System.Diagnostics.InstanceDataCollection this[string counterName] { get => throw null; }
public System.Collections.ICollection Values { get => throw null; }
}
public sealed class PerformanceCounter : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
{
public void BeginInit() => throw null;
public string CategoryName { get => throw null; set { } }
public void Close() => throw null;
public static void CloseSharedResources() => throw null;
public string CounterHelp { get => throw null; }
public string CounterName { get => throw null; set { } }
public System.Diagnostics.PerformanceCounterType CounterType { get => throw null; }
public PerformanceCounter() => throw null;
public PerformanceCounter(string categoryName, string counterName) => throw null;
public PerformanceCounter(string categoryName, string counterName, bool readOnly) => throw null;
public PerformanceCounter(string categoryName, string counterName, string instanceName) => throw null;
public PerformanceCounter(string categoryName, string counterName, string instanceName, bool readOnly) => throw null;
public PerformanceCounter(string categoryName, string counterName, string instanceName, string machineName) => throw null;
public long Decrement() => throw null;
public static int DefaultFileMappingSize;
protected override void Dispose(bool disposing) => throw null;
public void EndInit() => throw null;
public long Increment() => throw null;
public long IncrementBy(long value) => throw null;
public System.Diagnostics.PerformanceCounterInstanceLifetime InstanceLifetime { get => throw null; set { } }
public string InstanceName { get => throw null; set { } }
public string MachineName { get => throw null; set { } }
public System.Diagnostics.CounterSample NextSample() => throw null;
public float NextValue() => throw null;
public long RawValue { get => throw null; set { } }
public bool ReadOnly { get => throw null; set { } }
public void RemoveInstance() => throw null;
}
public sealed class PerformanceCounterCategory
{
public string CategoryHelp { get => throw null; }
public string CategoryName { get => throw null; set { } }
public System.Diagnostics.PerformanceCounterCategoryType CategoryType { get => throw null; }
public bool CounterExists(string counterName) => throw null;
public static bool CounterExists(string counterName, string categoryName) => throw null;
public static bool CounterExists(string counterName, string categoryName, string machineName) => throw null;
public static System.Diagnostics.PerformanceCounterCategory Create(string categoryName, string categoryHelp, System.Diagnostics.CounterCreationDataCollection counterData) => throw null;
public static System.Diagnostics.PerformanceCounterCategory Create(string categoryName, string categoryHelp, System.Diagnostics.PerformanceCounterCategoryType categoryType, System.Diagnostics.CounterCreationDataCollection counterData) => throw null;
public static System.Diagnostics.PerformanceCounterCategory Create(string categoryName, string categoryHelp, System.Diagnostics.PerformanceCounterCategoryType categoryType, string counterName, string counterHelp) => throw null;
public static System.Diagnostics.PerformanceCounterCategory Create(string categoryName, string categoryHelp, string counterName, string counterHelp) => throw null;
public PerformanceCounterCategory() => throw null;
public PerformanceCounterCategory(string categoryName) => throw null;
public PerformanceCounterCategory(string categoryName, string machineName) => throw null;
public static void Delete(string categoryName) => throw null;
public static bool Exists(string categoryName) => throw null;
public static bool Exists(string categoryName, string machineName) => throw null;
public static System.Diagnostics.PerformanceCounterCategory[] GetCategories() => throw null;
public static System.Diagnostics.PerformanceCounterCategory[] GetCategories(string machineName) => throw null;
public System.Diagnostics.PerformanceCounter[] GetCounters() => throw null;
public System.Diagnostics.PerformanceCounter[] GetCounters(string instanceName) => throw null;
public string[] GetInstanceNames() => throw null;
public bool InstanceExists(string instanceName) => throw null;
public static bool InstanceExists(string instanceName, string categoryName) => throw null;
public static bool InstanceExists(string instanceName, string categoryName, string machineName) => throw null;
public string MachineName { get => throw null; set { } }
public System.Diagnostics.InstanceDataCollectionCollection ReadCategory() => throw null;
}
public enum PerformanceCounterCategoryType
{
Unknown = -1,
SingleInstance = 0,
MultiInstance = 1,
}
public enum PerformanceCounterInstanceLifetime
{
Global = 0,
Process = 1,
}
public sealed class PerformanceCounterManager : System.Diagnostics.ICollectData
{
void System.Diagnostics.ICollectData.CloseData() => throw null;
void System.Diagnostics.ICollectData.CollectData(int callIdx, nint valueNamePtr, nint dataPtr, int totalBytes, out nint res) => throw null;
public PerformanceCounterManager() => throw null;
}
public enum PerformanceCounterType
{
NumberOfItemsHEX32 = 0,
NumberOfItemsHEX64 = 256,
NumberOfItems32 = 65536,
NumberOfItems64 = 65792,
CounterDelta32 = 4195328,
CounterDelta64 = 4195584,
SampleCounter = 4260864,
CountPerTimeInterval32 = 4523008,
CountPerTimeInterval64 = 4523264,
RateOfCountsPerSecond32 = 272696320,
RateOfCountsPerSecond64 = 272696576,
RawFraction = 537003008,
CounterTimer = 541132032,
Timer100Ns = 542180608,
SampleFraction = 549585920,
CounterTimerInverse = 557909248,
Timer100NsInverse = 558957824,
CounterMultiTimer = 574686464,
CounterMultiTimer100Ns = 575735040,
CounterMultiTimerInverse = 591463680,
CounterMultiTimer100NsInverse = 592512256,
AverageTimer32 = 805438464,
ElapsedTime = 807666944,
AverageCount64 = 1073874176,
SampleBase = 1073939457,
AverageBase = 1073939458,
RawBase = 1073939459,
CounterMultiBase = 1107494144,
}
namespace PerformanceData
{
public sealed class CounterData
{
public void Decrement() => throw null;
public void Increment() => throw null;
public void IncrementBy(long value) => throw null;
public long RawValue { get => throw null; set { } }
public long Value { get => throw null; set { } }
}
public class CounterSet : System.IDisposable
{
public void AddCounter(int counterId, System.Diagnostics.PerformanceData.CounterType counterType) => throw null;
public void AddCounter(int counterId, System.Diagnostics.PerformanceData.CounterType counterType, string counterName) => throw null;
public System.Diagnostics.PerformanceData.CounterSetInstance CreateCounterSetInstance(string instanceName) => throw null;
public CounterSet(System.Guid providerGuid, System.Guid counterSetGuid, System.Diagnostics.PerformanceData.CounterSetInstanceType instanceType) => throw null;
public void Dispose() => throw null;
protected virtual void Dispose(bool disposing) => throw null;
}
public sealed class CounterSetInstance : System.IDisposable
{
public System.Diagnostics.PerformanceData.CounterSetInstanceCounterDataSet Counters { get => throw null; }
public void Dispose() => throw null;
}
public sealed class CounterSetInstanceCounterDataSet : System.IDisposable
{
public void Dispose() => throw null;
public System.Diagnostics.PerformanceData.CounterData this[int counterId] { get => throw null; }
public System.Diagnostics.PerformanceData.CounterData this[string counterName] { get => throw null; }
}
public enum CounterSetInstanceType
{
Single = 0,
Multiple = 2,
GlobalAggregate = 4,
MultipleAggregate = 6,
GlobalAggregateWithHistory = 11,
InstanceAggregate = 22,
}
public enum CounterType
{
RawDataHex32 = 0,
RawDataHex64 = 256,
RawData32 = 65536,
RawData64 = 65792,
Delta32 = 4195328,
Delta64 = 4195584,
SampleCounter = 4260864,
QueueLength = 4523008,
LargeQueueLength = 4523264,
QueueLength100Ns = 5571840,
QueueLengthObjectTime = 6620416,
RateOfCountPerSecond32 = 272696320,
RateOfCountPerSecond64 = 272696576,
RawFraction32 = 537003008,
RawFraction64 = 537003264,
PercentageActive = 541132032,
PrecisionSystemTimer = 541525248,
PercentageActive100Ns = 542180608,
PrecisionTimer100Ns = 542573824,
ObjectSpecificTimer = 543229184,
PrecisionObjectSpecificTimer = 543622400,
SampleFraction = 549585920,
PercentageNotActive = 557909248,
PercentageNotActive100Ns = 558957824,
MultiTimerPercentageActive = 574686464,
MultiTimerPercentageActive100Ns = 575735040,
MultiTimerPercentageNotActive = 591463680,
MultiTimerPercentageNotActive100Ns = 592512256,
AverageTimer32 = 805438464,
ElapsedTime = 807666944,
AverageCount64 = 1073874176,
SampleBase = 1073939457,
AverageBase = 1073939458,
RawBase32 = 1073939459,
RawBase64 = 1073939712,
MultiTimerBase = 1107494144,
}
}
}
}

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../System.Configuration.ConfigurationManager/6.0.0/System.Configuration.ConfigurationManager.csproj" />
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../Microsoft.NETCore.Platforms/3.1.0/Microsoft.NETCore.Platforms.csproj" />
<ProjectReference Include="../../System.Security.Principal.Windows/4.7.0/System.Security.Principal.Windows.csproj" />
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,21 @@
// This file contains auto-generated code.
// Generated from `System.Security.Cryptography.ProtectedData, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
namespace System
{
namespace Security
{
namespace Cryptography
{
public enum DataProtectionScope
{
CurrentUser = 0,
LocalMachine = 1,
}
public static class ProtectedData
{
public static byte[] Protect(byte[] userData, byte[] optionalEntropy, System.Security.Cryptography.DataProtectionScope scope) => throw null;
public static byte[] Unprotect(byte[] encryptedData, byte[] optionalEntropy, System.Security.Cryptography.DataProtectionScope scope) => throw null;
}
}
}
}

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
</ItemGroup>
</Project>

View File

@@ -13,10 +13,12 @@ packages = [
"Amazon.Lambda.Core",
"Amazon.Lambda.APIGatewayEvents",
"Dapper",
"EntityFramework",
"Newtonsoft.Json",
"NHibernate",
"ServiceStack",
"ServiceStack.OrmLite.SqlServer",
"System.Data.OleDb",
"System.Data.SqlClient",
"System.Data.SQLite",
]