internal void SaveRecurso(Recurso objRecurso)
 {
     using (CalendarClassEntitiesDataContext dc = new CalendarClassEntitiesDataContext(App.conexionString))
     {
         dc.Recurso.InsertOnSubmit(objRecurso);
         dc.SubmitChanges();
     }
 }
        internal void UpdateRecurso(Recurso objRecurso)
        {
            using (CalendarClassEntitiesDataContext dc = new CalendarClassEntitiesDataContext(App.conexionString))
            {
                Recurso _objRecurso = dc.Recurso.Single(p => p.RecursoId == objRecurso.RecursoId);

                dc.SubmitChanges();
            }
        }
 partial void DeleteRecurso(Recurso instance);
 partial void UpdateRecurso(Recurso instance);
 partial void InsertRecurso(Recurso instance);
		private void detach_Recurso(Recurso entity)
		{
			this.SendPropertyChanging();
			entity.Materia = null;
		}
		private void attach_Recurso(Recurso entity)
		{
			this.SendPropertyChanging();
			entity.Materia = this;
		}