public void Update(int IdRelacion, int IdEfector, int IdRecienNacido, int IdDefectoCongenito, bool?DefectoMayor, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprRelRecienNacidoDefectoCongenito item = new AprRelRecienNacidoDefectoCongenito();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdRelacion = IdRelacion;

            item.IdEfector = IdEfector;

            item.IdRecienNacido = IdRecienNacido;

            item.IdDefectoCongenito = IdDefectoCongenito;

            item.DefectoMayor = DefectoMayor;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
        public void Insert(int IdEfector, int IdRecienNacido, int IdDefectoCongenito, bool?DefectoMayor, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprRelRecienNacidoDefectoCongenito item = new AprRelRecienNacidoDefectoCongenito();

            item.IdEfector = IdEfector;

            item.IdRecienNacido = IdRecienNacido;

            item.IdDefectoCongenito = IdDefectoCongenito;

            item.DefectoMayor = DefectoMayor;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }