示例#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);