MasterSetting Transform(MasterSetting s, string userName) { return new MasterSetting() { ID = s.ID, Setting = s.Setting, Value = s.Value, Description = s.Description, LastModifiedBy = s.LastModifiedBy, LastModifiedDate = s.LastModifiedDate,LastModifiedByVal = userName, SettingValue = new MasterSetting.SettingVal(){ val = s.Value, setting = s.Setting} }; }
public void Update(MasterSetting sObj) { if (sObj.ID <= Defaults.Integer) // Insert return;//HT:SPECIAL CASE: W've handled Add separately so we skip //Add(rrObj); else // Update { dbc.MasterSettings.Attach(sObj); dbc.Refresh(System.Data.Linq.RefreshMode.KeepCurrentValues, sObj); //dbc.SubmitChanges(); Done later } }
partial void UpdateMasterSetting(MasterSetting instance);
partial void DeleteMasterSetting(MasterSetting instance);
partial void InsertMasterSetting(MasterSetting instance);