示例#1
0
 public void CreateForm1(AddForm1Details addForm1Details)
 {
     using (var context = new EIA_DEVEntities())
     {
         context.Database.ExecuteStoredProcedure(addForm1Details);
     }
 }
示例#2
0
        public IEnumerable <GetCourierCompanyName_Result> courierlist(string TerminalCode)
        {
            IEnumerable <GetCourierCompanyName_Result> result = null;

            using (var context = new EIA_DEVEntities())
            {
                result = context.Database.ExecProcedure <GetCourierCompanyName_Result>("GetCourierCompanyName", new
                {
                    TerminalCode = TerminalCode
                }).ToList();
            }

            return(result);
        }
示例#3
0
        public GetFlightDetails_Result flightDetail(string FlightNumber, string TerminalCode)
        {
            GetFlightDetails_Result result = null;

            using (var context = new EIA_DEVEntities())
            {
                result = context.Database.ExecProcedure <GetFlightDetails_Result>("GetFlightDetails", new
                {
                    FlightNumber = FlightNumber,
                    TerminalCode = TerminalCode
                }).FirstOrDefault();
            }

            return(result);
        }
示例#4
0
        public GetForm1CheckStatus_Result GetForm1CheckStatus(string IGMNumber, string MAWBNumber, string TerminalCode)
        {
            GetForm1CheckStatus_Result result = null;

            using (var context = new EIA_DEVEntities())
            {
                result = context.Database.ExecProcedure <GetForm1CheckStatus_Result>("GetForm1CheckStatus", new
                {
                    IGMNumber    = IGMNumber,
                    MAWBNumber   = MAWBNumber,
                    TerminalCode = TerminalCode
                }).FirstOrDefault();
            }

            return(result);
        }
示例#5
0
        public IEnumerable <GetFlightNumber_Result> flightList(string TerminalCode, string AirlineCode, string FlightType)
        {
            IEnumerable <GetFlightNumber_Result> result = null;

            using (var context = new EIA_DEVEntities())
            {
                result = context.Database.ExecProcedure <GetFlightNumber_Result>("GetFlightNumber", new
                {
                    TerminalCode = TerminalCode,
                    AirlineCode  = DBNull.Value,
                    FlightType   = FlightType
                }).ToList();
            }

            return(result);
        }
示例#6
0
 public LoginRepository(EIA_DEVEntities objcontext)
 {
     _db = objcontext;
 }
示例#7
0
 public VW_UserDetailRepository(EIA_DEVEntities objcontext)
 {
     _db = objcontext;
 }
 public VSEC_ROLE_MST_Repository(EIA_DEVEntities objcontext)
 {
     _db = objcontext;
 }
示例#9
0
 public Menu(EIA_DEVEntities objcontext)
 {
     _db = objcontext;
 }
 public M_CommonMaster_MST_Repository(EIA_DEVEntities objcontext)
 {
     _db = objcontext;
 }
 public GenericRepository(EIA_DEVEntities context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }