[d2857c]: System.Data.SQLite / SQLiteFunctionAttribute.cs  Maximize  Restore  History

Download this file

44 lines (39 with data), 1.6 kB

 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson (robert@blackcastlesoft.com)
*
* Released to the public domain, use at your own risk!
********************************************************/
namespace System.Data.SQLite
{
/// <summary>
/// A simple custom attribute to enable us to easily find user-defined functions in
/// the loaded assemblies and initialize them in SQLite as connections are made.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class SQLiteFunctionAttribute : Attribute
{
internal Type _instanceType;
/// <summary>
/// Default constructor, initializes the internal variables for the function.
/// </summary>
public SQLiteFunctionAttribute()
{
Name = "";
Arguments = -1;
FuncType = FunctionType.Scalar;
}
/// <summary>
/// The function's name as it will be used in SQLite command text.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The number of arguments this function expects. -1 if the number of arguments is variable.
/// </summary>
public int Arguments { get; set; }
/// <summary>
/// The type of function this implementation will be.
/// </summary>
public FunctionType FuncType { get; set; }
}
}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks