Files
mono/mcs/class/System.Data/System.Data.Sql/SqlFunctionAttribute.cs
T
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00

67 lines
1.2 KiB
C#

//
// System.Data.Sql.SqlFunctionAttribute
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2003
//
#if NET_2_0
using System;
namespace System.Data.Sql {
[AttributeUsage (AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
[Serializable]
public class SqlFunctionAttribute : Attribute
{
#region Fields
DataAccessKind dataAccess;
bool isDeterministic;
bool isPrecise;
SystemDataAccessKind systemDataAccess;
#endregion // Fields
#region Constructors
public SqlFunctionAttribute ()
{
dataAccess = DataAccessKind.None;
isDeterministic = false;
isPrecise = false;
systemDataAccess = SystemDataAccessKind.None;
}
#endregion // Constructors
#region Properties
public DataAccessKind DataAccess {
get { return dataAccess; }
set { dataAccess = value; }
}
public bool IsDeterministic {
get { return isDeterministic; }
set { isDeterministic = value; }
}
public bool IsPrecise {
get { return isPrecise; }
set { isPrecise = value; }
}
public SystemDataAccessKind SystemDataAccess {
get { return systemDataAccess; }
set { systemDataAccess = value; }
}
#endregion // Properties
}
}
#endif