| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //
- // 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
|