Exemplo n.º 1
0
		private void detach_Histories1(History entity)
		{
			this.SendPropertyChanging();
			entity.Mosku1 = null;
		}
Exemplo n.º 2
0
		private void attach_Histories(History entity)
		{
			this.SendPropertyChanging();
			entity.Mosku = this;
		}
Exemplo n.º 3
0
 partial void DeleteHistory(History instance);
Exemplo n.º 4
0
 partial void UpdateHistory(History instance);
Exemplo n.º 5
0
 partial void InsertHistory(History instance);
Exemplo 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);
 }