send data from arduino to a local database in my Pc

how can I connect my arduino with a local database in my Pc

You probably can't. You need some application on the PC that reads the serial port and deals with the database.

knowing that it will be connected to a graphical interface in C # to show the Result

Is "it" the Statue of Liberty?