Exemple #1
0
        public bool AddGPSSentence(String sentence, String creator, Int32 pathID)
        {
            try
            {
                PathDetail pathDetail = new PathDetail();
                pathDetail.GPSSentence = Encode(sentence);
                pathDetail.Added_By    = Encode(creator);
                pathDetail.PathID      = pathID;
                mGPSDB.PathDetails.InsertOnSubmit(pathDetail);

                mGPSDB.SubmitChanges();
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }
 partial void DeletePathDetail(PathDetail instance);
 partial void UpdatePathDetail(PathDetail instance);
 partial void InsertPathDetail(PathDetail instance);
        public bool AddGPSSentence(String sentence, String creator, Int32 pathID)
        {
            try
            {
                PathDetail pathDetail = new PathDetail();
                pathDetail.GPSSentence = Encode(sentence);
                pathDetail.Added_By = Encode(creator);
                pathDetail.PathID = pathID;
                mGPSDB.PathDetails.InsertOnSubmit(pathDetail);

                mGPSDB.SubmitChanges();
            }
            catch (System.Exception )
            {
                return false;
            }

            return true;
        }
 partial void DeletePathDetail(PathDetail instance);
 partial void UpdatePathDetail(PathDetail instance);
 partial void InsertPathDetail(PathDetail instance);