mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
* System.Data.Common/DbDataPermission.cs:
* System.Data.SqlClient/SqlClientPermission.cs:
Make these agree on the class status page.
* System.Data.SqlClient/SqlCommand.cs:
- Fix up handling of GUID and [Var]Binary, and Image types
* System.Data.SqlClient/SqlParameter.cs:
- Provide support for conversion between Type,
DbType, SqlDbType, and the SQL server type names.
- Fix up handling of GUID and [Var]Binary types
* System.Data.SqlClient/SqlParameterCollection.cs:
Correct all of the Add methods.
* Test/SqlTest.cs:
- Add more types to test: unique identifier, binary,
image, smalldatetime, money, smallmoney, timestamp
svn path=/trunk/mcs/; revision=9003
58 lines
1.0 KiB
C#
58 lines
1.0 KiB
C#
//
|
|
// System.Data.SqlClient.SqlClientPermission.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Daniel Morgan ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc 2002
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
using System;
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
|
|
namespace System.Data.SqlClient {
|
|
[Serializable]
|
|
public sealed class SqlClientPermission : DBDataPermission
|
|
{
|
|
#region Fields
|
|
|
|
PermissionState state;
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
public SqlClientPermission ()
|
|
: this (PermissionState.None, false)
|
|
{
|
|
}
|
|
|
|
public SqlClientPermission (PermissionState state)
|
|
: this (state, false)
|
|
{
|
|
}
|
|
|
|
public SqlClientPermission (PermissionState state, bool allowBlankPassword)
|
|
{
|
|
AllowBlankPassword = allowBlankPassword;
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Methods
|
|
|
|
protected override DBDataPermission CreateInstance ()
|
|
{
|
|
return (DBDataPermission) new SqlClientPermission ();
|
|
}
|
|
|
|
#endregion // Methods
|
|
}
|
|
}
|