2
0

SqlFunctionAttribute.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // System.Data.Sql.SqlFunctionAttribute
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Data.Sql {
  12. [AttributeUsage (AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
  13. [Serializable]
  14. public class SqlFunctionAttribute : Attribute
  15. {
  16. #region Fields
  17. DataAccessKind dataAccess;
  18. bool isDeterministic;
  19. bool isPrecise;
  20. SystemDataAccessKind systemDataAccess;
  21. #endregion // Fields
  22. #region Constructors
  23. public SqlFunctionAttribute ()
  24. {
  25. dataAccess = DataAccessKind.None;
  26. isDeterministic = false;
  27. isPrecise = false;
  28. systemDataAccess = SystemDataAccessKind.None;
  29. }
  30. #endregion // Constructors
  31. #region Properties
  32. public DataAccessKind DataAccess {
  33. get { return dataAccess; }
  34. set { dataAccess = value; }
  35. }
  36. public bool IsDeterministic {
  37. get { return isDeterministic; }
  38. set { isDeterministic = value; }
  39. }
  40. public bool IsPrecise {
  41. get { return isPrecise; }
  42. set { isPrecise = value; }
  43. }
  44. public SystemDataAccessKind SystemDataAccess {
  45. get { return systemDataAccess; }
  46. set { systemDataAccess = value; }
  47. }
  48. #endregion // Properties
  49. }
  50. }
  51. #endif