Property changing null whilst updating a value.
- by dinesh
retreiveing the Data object through a class which is partial class in linq to sql.
i am using the same object model to update the changes. but proprertychanging is always null for this object.
An anonoymoustype has been converted into strong object type. This strong type is updated again.
any one can expalin reason for this?
Sample Code:
var questions = from Question in _db.CheckListInstanceQuestionDataSource
join Question in _db.QuestionDataSource on CheckListInstanceQuestion.UI_QuestionID equals Question.UI_QuestionID
where CheckListInstanceQuestion.UI_CheckListInstanceID == instanceID && CheckListInstanceForm.UI_TemplateCheckListFormID == selectedFormID
orderby CheckListInstanceQuestion.IN_Order, CheckListInstanceQuestion.VC_Code
select new
{
Question .UI_QuestionID,
Question.VC_Description,
};
ICollection checkListQuestions = new List();
foreach (var question in questions)
{
checkListQuestions.Add(new CheckListInstanceQuestion
{
UI_QuestionID = question.UI_QuestionID,
VC_Description = question.VC_Description,
});