Example #1
0
 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} };
 }
Example #2
0
        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
            }
        }
Example #3
0
 partial void UpdateMasterSetting(MasterSetting instance);
Example #4
0
 partial void DeleteMasterSetting(MasterSetting instance);
Example #5
0
 partial void InsertMasterSetting(MasterSetting instance);