示例#1
0
 public bool CreateStation(string StationName, string StationCode, string StationDescription)
 {
     StationDetail sd = new StationDetail
     {
         STATION_TITLE = StationName,
         STATION_CODE = StationCode,
         STATION_DESCRIPTION = StationDescription
     };
     DataCenterDataContext db = new DataCenterDataContext();
     db.StationDetails.InsertOnSubmit(sd);
     try
     {
         db.SubmitChanges();
         return true;
     }
     catch (Exception e)
     {
         return false;
     }
 }
示例#2
0
 partial void UpdateStationDetail(StationDetail instance);
示例#3
0
 partial void DeleteStationDetail(StationDetail instance);
示例#4
0
 partial void InsertStationDetail(StationDetail instance);