Пример #1
0
        public BaseEntity BuildObject(Dictionary <string, object> row)
        {
            AirportCrudFactory acf = new AirportCrudFactory();
            var entity             = new Airport
            {
                ID = GetStringValue(row, DB_COL_ID_AIRPORT)
            };

            Airport airport = acf.Retrieve <Airport>(entity);

            var AirportManager = new AirportManager
            {
                ID             = GetStringValue(row, DB_COL_ID),
                FirstName      = GetStringValue(row, DB_COL_FIRST_NAME),
                SecondName     = GetStringValue(row, DB_COL_SECOND_NAME),
                LastName       = GetStringValue(row, DB_COL_FIRST_LAST_NAME),
                SecondLastName = GetStringValue(row, DB_COL_SECOND_LAST_NAME),
                BirthDate      = GetDateValue(row, DB_COL_BIRTHDATE),
                Genre          = GetStringValue(row, DB_COL_GENRE),
                Email          = GetStringValue(row, DB_COL_EMAIL),
                Password       = GetStringValue(row, DB_COL_PASSWORD),
                Phone          = GetStringValue(row, DB_COL_PHONE),
                CivilStatus    = GetStringValue(row, DB_COL_CIVIL_STATUS),
                Status         = Convert.ToBoolean(GetIntValue(row, DB_COL_STATUS)),
                Rol            = GetStringValue(row, DB_COL_ID_ROL),
                AirportID      = GetStringValue(row, DB_COL_ID_AIRPORT),
                AirportName    = airport.Name
            };

            return(AirportManager);
        }
Пример #2
0
 public AirportManagement()
 {
     crudAirport = new AirportCrudFactory();
 }