Mono.Data.Sqlite SqliteFunction in C# (CSharp): 7 esempi trovati. Questi sono i migliori esempi reali in C# (CSharp) per Mono.Data.Sqlite.SqliteFunction, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.
This abstract class is designed to handle user-defined functions easily. An instance of the derived class is made for each connection to the database.
Although there is one instance of a class derived from SqliteFunction per database connection, the derived class has no access to the underlying connection. This is necessary to deter implementers from thinking it would be a good idea to make database calls during processing. It is important to distinguish between a per-connection instance, and a per-SQL statement context. One instance of this class services all SQL statements being stepped through on that connection, and there can be many. One should never store per-statement information in member variables of user-defined function classes. For aggregate functions, always create and store your per-statement data in the contextData object on the 1st step. This data will be automatically freed for you (and Dispose() called if the item supports IDisposable) when the statement completes.