mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* System.Data.build: took out all excluded files except the ones in the Test directory because all files compile now. It does not mean they all work or have implementations though. * System.Data/DataRelationCollection.cs * System.Data/DataTableRelationCollection.cs * System.Data/InternalDataCollectionBase.cs * System.Data.Common/DbDataPermission.cs * System.Data.SqlClient/SqlInfoMessageEventArgs.cs * System.Data.SqlClient/SqlClientPermission.cs * System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes to get all System.Data* files to compile. * System.Data.SqlClient/SqlCommand.cs: started coding to prevent SqlConnection and SqlCommand from doing anyting while fetching data using SqlDataReader. Also, started coding to undo this prevention once the SqlDataReader is closed. * System.Data.SqlClient/SqlConnection.cs: get database server version. Started coding to prevent connection from doing anything while fetching data and undo once the reader is closed. Include events SqlInfoMessage and StateChange. * System.Data.SqlClient/SqlDataReader.cs: start coding to prevent connection and command from doing anything while fetching data, and undo when closed. * Test/PostgresTest.cs: added test to get ServerVersion property from SqlConnection svn path=/trunk/mcs/; revision=4742
47 lines
969 B
C#
47 lines
969 B
C#
//
|
|
// System.Data.SqlClient.SqlClientPermissionAttribute.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Daniel Morgan ([email protected])
|
|
//
|
|
// (C) Ximian, Inc 2002
|
|
//
|
|
|
|
using System;
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
|
|
namespace System.Data.SqlClient {
|
|
|
|
[AttributeUsage(AttributeTargets.Assembly |
|
|
AttributeTargets.Class |
|
|
AttributeTargets.Struct |
|
|
AttributeTargets.Constructor |
|
|
AttributeTargets.Method)]
|
|
[Serializable]
|
|
public sealed class SqlClientPermissionAttribute :
|
|
DBDataPermissionAttribute {
|
|
|
|
[MonoTODO]
|
|
public SqlClientPermissionAttribute(SecurityAction action) :
|
|
base(action)
|
|
{
|
|
// FIXME: do constructor
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override IPermission CreatePermission() {
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
//[MonoTODO]
|
|
//~SqlClientPermissionAttribute() {
|
|
// // FIXME: destructor to release resources
|
|
//}
|
|
}
|
|
|
|
}
|