예제 #1
0
        public String Insert(String Title, String Description)
        {
            TrainTypeDetail ttd = new TrainTypeDetail
            {
                TTD_TITLE = Title,
                TTD_DESCRIPTION = Description
            };

            dc.TrainTypeDetails.InsertOnSubmit(ttd);
            try{
                dc.SubmitChanges();
                return "";
            }catch(Exception ex){
                return ex.Message;
            }
        }
예제 #2
0
 partial void DeleteTrainTypeDetail(TrainTypeDetail instance);
예제 #3
0
 partial void UpdateTrainTypeDetail(TrainTypeDetail instance);
예제 #4
0
 partial void InsertTrainTypeDetail(TrainTypeDetail instance);