private void insert(Vyplatnice v)
 {
     using (var db = DrivingScoolContextHelper.CreateDataContext2())
     {
         try
         {
             db.Vyplatnice.InsertOnSubmit(v);
             db.SubmitChanges();
         }
         catch (MySqlException)
         {
             throw new HttpResponseException(HttpStatusCode.BadRequest);
         }
     }
 }
		private void VYPlatNice_Detach(Vyplatnice entity)
		{
			entity.Ucitele = null;
		}
		private void VYPlatNice_Attach(Vyplatnice entity)
		{
			entity.Ucitele = this;
		}
 public VyplatniceUcitele(Vyplatnice vyplatnice, Ucitele ucitel)
 {
     this.vyplatnice = vyplatnice;
     this.ucitel = ucitel;
 }