Exemplo n.º 1
0
        public static void AddIntervention(string e, string c, DateTime d, int def, string p)
        {
            Intervention i = new Intervention
            {
                Etat = e,
                Commentaire = c,
                DateIntervention = d,
                IdDefaut = def,
                Mail = p
            };

            InstanceDC.Interventions.InsertOnSubmit(i);
            InstanceDC.SubmitChanges();
        }
		private void detach_Interventions(Intervention entity)
		{
			this.SendPropertyChanging();
			entity.Personne = null;
		}
 partial void DeleteIntervention(Intervention instance);
 partial void UpdateIntervention(Intervention instance);
 partial void InsertIntervention(Intervention instance);
		private void attach_Interventions(Intervention entity)
		{
			this.SendPropertyChanging();
			entity.Defaut = this;
		}