Example #1
0
 /// <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();
         }
     }
 }
Example #2
0
 partial void Deletefwk_Param(fwk_Param instance);
Example #3
0
 partial void Updatefwk_Param(fwk_Param instance);
Example #4
0
 partial void Insertfwk_Param(fwk_Param instance);
Example #5
0
 partial void Deletefwk_Param(fwk_Param instance);
Example #6
0
 partial void Updatefwk_Param(fwk_Param instance);
Example #7
0
 partial void Insertfwk_Param(fwk_Param instance);