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

VulpesRank #55 · 29.2K reputationPosted Apr 1, 2011, 2:51 PM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted Apr 1, 2011, 6:43 AM EDT
Posted Apr 1, 2011, 6:52 AM EDT
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, 6:52 AM EDT
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...
VulpesRank #55 · 29.2K reputationPosted Apr 1, 2011, 1:23 PM EDT
When you call SubmitChanges(), that method then generates the appropriate SQL INSERT command and sends that to the database.
Posted Apr 1, 2011, 2:04 PM EDT
Ive tried to drill down the "code behind" for the particular Table