SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am beginner in SharePoint 2010 development. and doing following lab:

Module 6: Accessing external data with Business Connectivity Services in SharePoint 2010 in Last video

I have developed the BCS model as in the lab. In the lab, the code for "Using", "SQLConnection", "ReadItem", "ReadList" methods is auto-generated and the instructor just drag the code for respective method and Place it. He drag the code from "General" Category of ToolBox, where as, In my VS2010 development Environment, I don't find any Auto-generated code in "General" category of ToolBox for these methods

Now My question is: How i can bring Auto-generated code for these methods?? Is there any feature in VS that i need to enable or need to make some Connection to Sql server??

I need explanation for this. If any Lab available for this, then it would be more helpful.

share|improve this question
I'm sorry but that's not auto-generated code, but something the instructor has added to the toolbox prior to the presentation in order to give a more fluent presentation – Per Jakobsen Oct 15 '12 at 13:33
Thanks! Thats i want to know what and how the instructor added to the toolbox ?? – SPBeginer Oct 15 '12 at 13:41
The instructor at some point wrote then entire code by hand. Then he opened the toolbox and pinned it. Then he just selected the text he want to use during the presentation and dragged it into the toolbox. Now everytime he opens a .cs file these items are in the toolbox. – Per Jakobsen Oct 15 '12 at 13:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.