I write under a plain WinCE application, which is involved in SQLite.The project uses System.data.SQLite.dll and SQLite.Interop.080.dll.
So I'm working with SQLite:
SQLiteConnection ConnectSQL = new SQLiteConnection("Data Source=D:\1.db");
ConnectSQL.open();
SQLiteCommand commandSQL = ConnectSQL.CreateCommand();
commandSQL.CommandText = "Select Field1 FROM Table1";
SQLiteDataReader result = commandSQL.ExecuteReader();
How to declare the function and use it in sqlite to be able to write:
commandSQL.CommandText = "Select MyFunc(Field1) FROM Table1";