I have a table in my database with 2 rows of employee data.
...........
ID | Name
...........
1 | Jon Doe
2 | Jane Doe
...........
I need to convert this into:
I NEED THIS IN MY CODE !!!! JUST LIKE THAT AS CODE YOU PEOPLE NOT ORM AS CODE !!!
Employee e1 = new Employee();
e1.ID = 1;
e1.Name = "Jon Doe";
Employee e2 = new Employee();
e2.ID = 2;
e2.Name = "Jane Doe";
SO THAT IT CAN BE SAVED TO DB WHEN APP RUNS FIRST TIME.
TO SAVE MY TIME FROM ACTUALLY WRITING 1200 OBJECT INSTANCES TO THE DATABASE,I JUST NEED SOME WAY TO (LIKE XML FROM DB) !!! ON FIRST RUN
This is an example,why I need it is because,I have a table that stores settings (width,height,label for grid) etc that need to be set to something first time the app runs.
What way could I generate this, are there any tools available,or how would you go about it?
Sorry for not being so f*** clear rough day...