File: SqlAttributes.cs

package info (click to toggle)
indigo 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,936 kB
  • sloc: ansic: 332,816; cpp: 169,470; python: 20,033; java: 13,701; cs: 9,979; asm: 8,475; sql: 6,743; xml: 6,354; javascript: 1,245; sh: 555; php: 506; makefile: 54
file content (30 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using Microsoft.SqlServer.Server;

namespace indigo.SqlAttributes
{
   public enum AccessLevelKind { None, Reader, Operator };

   public class BingoSqlFunctionAttribute : Attribute
   {
      public AccessLevelKind access_level { get; set; }
      public bool substitute_bingo { get; set; }
      /* Parameter name that should converted to binary */
      public string str_bin { get; set; }

      public BingoSqlFunctionAttribute ()
      {
         access_level = AccessLevelKind.Operator;
         substitute_bingo = true;
         str_bin = null;
      }
   }

   public class BingoSqlFunctionForReaderAttribute : BingoSqlFunctionAttribute
   {
      public BingoSqlFunctionForReaderAttribute()
      {
          access_level = AccessLevelKind.Reader;
      }
   }
}