I do not know if this is even the correct terminology, but I was wondering if it is possible to associate a row of (data) from the database with the object. I am working on a school project, and we decided to create this application to track the user's BMI / BMR and compare it with the number of calories entered. The program does not go too deep, so it does not store the calories consumed in the database.
So here is my problem. I have a row in my database:
First_Name - Last_Name - Height_Inches - Weight_Pounds
And I suppose I think I want my program to execute - if I have an object with properties for FirstName, LastName, HeightInches, WeightPounds - it somehow query the database for one row and put the values ββin the object . Everything that we have learned so far associates data with controls, which actually do not help in my case, since the work will be done behind the scenes.
Sorry if this is vague.
source share