Esempio n. 1
0
		private void detach_Histories1(History entity)
		{
			this.SendPropertyChanging();
			entity.Mosku1 = null;
		}
Esempio n. 2
0
		private void attach_Histories(History entity)
		{
			this.SendPropertyChanging();
			entity.Mosku = this;
		}
Esempio n. 3
0
 partial void DeleteHistory(History instance);
Esempio n. 4
0
 partial void UpdateHistory(History instance);
Esempio n. 5
0
 partial void InsertHistory(History instance);
Esempio n. 6
0
 public void Insert(int source, int destination, DateTime dateTime)
 {
     var newEntry = new History
     {
         Source = source,
         Destination = destination,
         Date = dateTime
     };
     _db.Histories.InsertOnSubmit(newEntry);
     _db.SubmitChanges();
     Histories.Add(newEntry);
 }