Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
		private void detach_FareDetails(FareDetail entity)
		{
			this.SendPropertyChanging();
			entity.TrainTypeDetail = null;
		}
Exemplo n.º 3
0
 partial void DeleteFareDetail(FareDetail instance);
Exemplo n.º 4
0
 partial void UpdateFareDetail(FareDetail instance);
Exemplo n.º 5
0
 partial void InsertFareDetail(FareDetail instance);