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; } }
partial void UpdateStationDetail(StationDetail instance);
partial void DeleteStationDetail(StationDetail instance);
partial void InsertStationDetail(StationDetail instance);