Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Ejemplo n.º 1
0
        // get interested in a theme category.
        public void getInterestedThemeCategory(CategoriasTematica themeCategory)
        {
            // create an interest
            Interese interest = new Interese();
            interest.idCategoriaTematica = themeCategory.id;
            interest.idUsuario = UserInfo.Id;

            // add interest to the database.
            try
            {
                IndignadoDBDataContext indignadoContext = new IndignadoDBDataContext();
                indignadoContext.Intereses.InsertOnSubmit(interest);
                indignadoContext.SubmitChanges();
            }
            catch (Exception error)
            {
            }
        }
Ejemplo n.º 2
0
		private void detach_Intereses(Interese entity)
		{
			this.SendPropertyChanging();
			entity.CategoriasTematica = null;
		}
Ejemplo n.º 3
0
 partial void DeleteInterese(Interese instance);
Ejemplo n.º 4
0
 partial void UpdateInterese(Interese instance);
Ejemplo n.º 5
0
 partial void InsertInterese(Interese instance);
Ejemplo n.º 6
0
		private void detach_Intereses(Interese entity)
		{
			this.SendPropertyChanging();
			entity.Usuario = null;
		}
Ejemplo n.º 7
0
		private void attach_Intereses(Interese entity)
		{
			this.SendPropertyChanging();
			entity.Usuario = this;
		}