/// <summary> /// Actualiza fwk_Param /// </summary> /// <param name="paramBE"></param> /// <param name="userUpdateId"></param> /// <param name="cnnStringName"></param> public static void Update(ParamBE paramBE, Guid?userUpdateId, string cnnStringName) { using (Fwk.ConfigData.FwkDatacontext dc = new Fwk.ConfigData.FwkDatacontext(System.Configuration.ConfigurationManager.ConnectionStrings[cnnStringName].ConnectionString)) { Fwk.ConfigData.fwk_Param param = dc.fwk_Params.Where(p => p.Id.Equals(paramBE.Id)).FirstOrDefault(); if (param != null) { param.Enabled = true; param.Name = paramBE.Name; param.Culture = paramBE.Culture; param.Description = paramBE.Description; //param.ParamId = paramBE.ParamId; //param.ParentId = paramBE.ParentId; dc.SubmitChanges(); } } }
partial void Deletefwk_Param(fwk_Param instance);
partial void Updatefwk_Param(fwk_Param instance);
partial void Insertfwk_Param(fwk_Param instance);