Example #1
0
        ITStud_Bus IStorageService.GetBus2stud(long nStudentFK)
        {
            TStud_Bus iD = null;

            iD = _Sb.TStud_Bus.FirstOrDefault(obj => obj.nEntityFKStudent == nStudentFK);
            return(new OTStud_Bus(iD));
        }
Example #2
0
        ITStud_Bus IStorageService.MapStudent2Bus(long nStudentFK, long nBusFKup, long nBUSFKdown, long nStopUp, long nStopDown)
        {
            TStud_Bus sB = new TStud_Bus()
            {
                nEntityFKStudent = nStudentFK,
                nBusFKup         = nBusFKup,
                nBusFKdown       = nBUSFKdown,
                nStopUp          = nStopUp,
                nStopDown        = nStopDown
            };

            _Sb.TStud_Bus.InsertOnSubmit(sB);
            if (true)
            {
                CommitToDB();
            }
            return(new OTStud_Bus(sB));
        }