/// <summary>
 /// Deprecated Method for adding a new object to the NominaDet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNominaDet(NominaDet nominaDet)
     base.AddObject("NominaDet", nominaDet);
        public Boolean Guardar(clsNominaDet nd)

                using (RecursosHumanosEntities ent = new RecursosHumanosEntities())

                    NominaDet  nomd = new NominaDet ()

                      NumLinea=nd.NumLinea ,
                      NumNomina =nd .NumNomina,
                      IdPersona =nd .IdPersona ,

                      SueldoNominal =nd .SueldoNominal,
                      SueldoGanado =Convert .ToDecimal ( nd .SueldGanado),
                      Iess =Convert .ToDecimal ( nd .Iess ),
                      Prestamo =Convert .ToDecimal (nd .PrestamoPago ),
                      Anticipo =Convert .ToDecimal (nd.Anticipo ),
                      ValorLiquido =Convert .ToDecimal( nd .ValorLiquido) ,
                      IdEmpresa =nd.IdEmpresa,


                return true;

            catch (Exception)
                return false;
 /// <summary>
 /// Create a new NominaDet object.
 /// </summary>
 /// <param name="numLinea">Initial value of the NumLinea property.</param>
 /// <param name="numNomina">Initial value of the NumNomina property.</param>
 /// <param name="idPersona">Initial value of the IdPersona property.</param>
 /// <param name="sueldoNominal">Initial value of the SueldoNominal property.</param>
 /// <param name="sueldoGanado">Initial value of the SueldoGanado property.</param>
 /// <param name="iess">Initial value of the Iess property.</param>
 /// <param name="valorLiquido">Initial value of the ValorLiquido property.</param>
 /// <param name="idEmpresa">Initial value of the IdEmpresa property.</param>
 public static NominaDet CreateNominaDet(global::System.Int32 numLinea, global::System.Int32 numNomina, global::System.Int32 idPersona, global::System.Decimal sueldoNominal, global::System.Decimal sueldoGanado, global::System.Decimal iess, global::System.Decimal valorLiquido, global::System.Int32 idEmpresa)
     NominaDet nominaDet = new NominaDet();
     nominaDet.NumLinea = numLinea;
     nominaDet.NumNomina = numNomina;
     nominaDet.IdPersona = idPersona;
     nominaDet.SueldoNominal = sueldoNominal;
     nominaDet.SueldoGanado = sueldoGanado;
     nominaDet.Iess = iess;
     nominaDet.ValorLiquido = valorLiquido;
     nominaDet.IdEmpresa = idEmpresa;
     return nominaDet;