jeudi 20 avril 2017

Writing to database when class is finished with

I'm pretty new to C#.net and I am currently making an application that is mainly used for reading and editing data in an Sql database.

I have created classes (e.g. Customer) that load the data into variables in the constructor to be edited by the user through properties, but i'm not sure how to implement writing those variables back to the database when the class is no longer needed.

Should I create a custom destructor? I have read that this should be avoided but I am not sure






Comments
0 Comments

0 commentaires:

Enregistrer un commentaire