Example #1
0
        public String Insert(float Value, String ComClass, int TrainType, int Distance)
        {
            FareDetail fd = new FareDetail
            {
                FARE_DISTANCE = Distance,
                FARE_COM_CLASS = ComClass,
                FARE_VALUE = Value,
                TRAIN_TYPE = TrainType
            };

            db.FareDetails.InsertOnSubmit(fd);
            try
            {
                db.SubmitChanges();
                return Constants.INSERT_SUCCESS;
            }
            catch (Exception ex) {
                return ex.Message;
            }
        }
Example #2
0
		private void detach_FareDetails(FareDetail entity)
		{
			this.SendPropertyChanging();
			entity.TrainTypeDetail = null;
		}
Example #3
0
 partial void DeleteFareDetail(FareDetail instance);
Example #4
0
 partial void UpdateFareDetail(FareDetail instance);
Example #5
0
 partial void InsertFareDetail(FareDetail instance);