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