Register in SQLite Database from C # Windows Forms Application

I am developing a win application in C # that communicates with a WCF service. I want to log exceptions that are thrown to the client to enter the Sql Lite database (the Win application uses the Sql Lite database to store data locally). And then later it needs to be sent to the wcf service as needed so that it can be useful for supporting / analyzing / improving the application.

I need a method that can be directly called in each catch block simply LogHelper.Log(ex).

I would like to know if anyone did this through the corporate library or used any good practice for such a situation?

Update I already use sql lite database for local data storage through the System.Data.SqLite library

+3
source share
3 answers

Recently, I have written several blog posts. I am sure that one or the other will give you the answer:

+2
source

You cannot directly use the microsoft corporate library with the sqlite database as a backend. Use the System.Data.SQLite library for all database operations.

, . System.Data.SQLite. System.Data.SQLite .

, sqlite concurrency. , .

0

System.data.sqlite db sqlite .

-1

Source: https://habr.com/ru/post/1743772/


All Articles