Hi
Given the below example, one of many like.
public void InsertOnSubmit();
How would the magic happen in that the InsertOnSubmit method knows to submit data to the database just from this method as there is no implementation!?
Sorry if this is a silly question,
Regards
Loading
VulpesPosted Apr 1, 2011, 6:51 PM
Posted Apr 1, 2011, 6:04 PM
Ive tried to drill down the "code behind" for the particular Table
VulpesPosted Apr 1, 2011, 5:23 PM
When you call SubmitChanges(), that method then generates the appropriate SQL INSERT command and sends that to the database.
Posted Apr 1, 2011, 10:52 AM
so if I was looking to create a method like InsertOnSubmit for example, id look to have a bunch of different underlining methods defined in my base class, one of which being Insert?
I guess the Framework is programmed in a way that it knows what Insert means...
Posted Apr 1, 2011, 10:52 AM
so if I was looking to create a method like InsertOnSubmit for example, id look to have a bunch of different underlining methods defined in my base class, one of which being Insert?
I guess the Framework is programmed in a way that it knows what Insert means...
Mahesh ChandPosted Apr 1, 2011, 10:43 AM