I peek into my classmate’s computer program and I see this:
DBDataContext db = new DBDataContext();
I try the same but my program reports that There is no DBDataContext, what assembly is it I need to reference now?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Chances are your classmate is using LINQ to SQL or something similar, and
DBDataContextis a class in her solution, created by the LINQ to SQL designer.Of course, the best way to learn from your classmate’s code isn’t to just “peek” into it – it’s to ask them about it. In the process of them explaining and you listening and asking questions, you’re both likely to learn.