Thank you very much Dear Nortee. Of course there are a lot of better methods other than direct access to DB, But I get used to this direct access method during the years. Maybe one of its reason was that Delphi documents ans examples didn't mention any method other than this. But these days I use entity framework as my ORM in WPF programming. At the end excuse me for late reply
I also work a lot with Entity Framework now as well. What I meant was that I prefer having special controllers that work with specific components that will handle the loading/adding/updating of data so that the component can do what it was meant for: displaying the data in a nice manner . You method allows for this as well, which is why I reckon it is quite cool if you go with direct data access .
"You cannot code for stupidity"