Пример #1
0
 public static void Insert_Map(string Lat, string Long, string PostSerialNumber)
 {
     try
     {
         tbl_Post post = getPostByPostSerialNumber(PostSerialNumber);
         if (post != null)
         {
             tbl_Map map = new tbl_Map();
             map.Latitude = Lat;
             map.Longitude = Long;
             map.PostID = post.ID;
             map.CreateDate = DateTime.UtcNow;
             db.tbl_Maps.InsertOnSubmit(map);
             db.SubmitChanges();
         }
     }
     catch (Exception ex){
         throw ex;
     }
 }
Пример #2
0
		private void detach_tbl_Maps(tbl_Map entity)
		{
			this.SendPropertyChanging();
			entity.tbl_Post = null;
		}
Пример #3
0
		private void attach_tbl_Maps(tbl_Map entity)
		{
			this.SendPropertyChanging();
			entity.tbl_Post = this;
		}
Пример #4
0
 partial void Deletetbl_Map(tbl_Map instance);
Пример #5
0
 partial void Updatetbl_Map(tbl_Map instance);
Пример #6
0
 partial void Inserttbl_Map(tbl_Map instance);