public Standart_Data AddStandart_Data(double value, int goalId, short day)
 {
     try
     {
         var stand = new Standart_Data();
         stand.GoalId = goalId;
         stand.Day = day;
         stand.Value = value;
         db.Standart_Data.InsertOnSubmit(stand);
         db.SubmitChanges();
         return stand;
     }
     catch (Exception e)
     {
         return null;
     }
 }
 partial void DeleteStandart_Data(Standart_Data instance);
 partial void InsertStandart_Data(Standart_Data instance);
 partial void UpdateStandart_Data(Standart_Data instance);
		private void detach_Standart_Data(Standart_Data entity)
		{
			this.SendPropertyChanging();
			entity.Goals = null;
		}