public void InsertApp(Model.SynClases.CAT_APP element, System.Data.Objects.ObjectContext context)
        {
            try
            {
                if (element != null && context != null)
                {
                    NoscDBEntities entity = context as NoscDBEntities;
                    if (entity != null)
                    {
                        CAT_APP insert = new CAT_APP()
                        {
                            IdApp = element.IdApp,
                            AppName = element.AppName,
                            AppIcon = element.AppIcon,
                            IsModified = element.IsModified,
                            LastModifiedDate = element.LastModifiedDate,
                            ServerLastModifiedDate = element.ServerLastModifiedDate,
                            IsActive = element.IsActive
                        };

                        entity.CAT_APP.AddObject(insert);
                        entity.SaveChanges();
                    }
                }
            }
            catch (Exception)
            {

                throw;
            }
        }
        private void FixupCAT_APP(CAT_APP previousValue)
        {
            if (previousValue != null && previousValue.Notificacions.Contains(this))
            {
                previousValue.Notificacions.Remove(this);
            }

            if (CAT_APP != null)
            {
                if (!CAT_APP.Notificacions.Contains(this))
                {
                    CAT_APP.Notificacions.Add(this);
                }
                if (IdApp != CAT_APP.IdApp)
                {
                    IdApp = CAT_APP.IdApp;
                }
            }
        }