ATMLDataAccessLibrary.db.beans.LuCountryBean.load C# (CSharp) Method

load() public method

public load ( System.Data.OleDb.OleDbDataReader reader ) : void
reader System.Data.OleDb.OleDbDataReader
return void
        public override void load(  OleDbDataReader reader )
        {
            base.resetDirtyState();
            if( fieldMap.ContainsKey(_COUNTRY_ID) )
                fieldMap[_COUNTRY_ID] = reader[_COUNTRY_ID];
            else
                fieldMap.Add(_COUNTRY_ID, reader[_COUNTRY_ID]);
            if( originalFieldMap.ContainsKey(_COUNTRY_ID) )
                originalFieldMap[_COUNTRY_ID] = reader[_COUNTRY_ID];
            else
                originalFieldMap.Add(_COUNTRY_ID, reader[_COUNTRY_ID]);
            if( fieldMap.ContainsKey(_COUNTRY_NAME) )
                fieldMap[_COUNTRY_NAME] = reader[_COUNTRY_NAME];
            else
                fieldMap.Add(_COUNTRY_NAME, reader[_COUNTRY_NAME]);
            if( originalFieldMap.ContainsKey(_COUNTRY_NAME) )
                originalFieldMap[_COUNTRY_NAME] = reader[_COUNTRY_NAME];
            else
                originalFieldMap.Add(_COUNTRY_NAME, reader[_COUNTRY_NAME]);
            if( fieldMap.ContainsKey(_COUNTRY_CODE) )
                fieldMap[_COUNTRY_CODE] = reader[_COUNTRY_CODE];
            else
                fieldMap.Add(_COUNTRY_CODE, reader[_COUNTRY_CODE]);
            if( originalFieldMap.ContainsKey(_COUNTRY_CODE) )
                originalFieldMap[_COUNTRY_CODE] = reader[_COUNTRY_CODE];
            else
                originalFieldMap.Add(_COUNTRY_CODE, reader[_COUNTRY_CODE]);
            if( fieldMap.ContainsKey(_ACTIVE_FLAG) )
                fieldMap[_ACTIVE_FLAG] = reader[_ACTIVE_FLAG];
            else
                fieldMap.Add(_ACTIVE_FLAG, reader[_ACTIVE_FLAG]);
            if( originalFieldMap.ContainsKey(_ACTIVE_FLAG) )
                originalFieldMap[_ACTIVE_FLAG] = reader[_ACTIVE_FLAG];
            else
                originalFieldMap.Add(_ACTIVE_FLAG, reader[_ACTIVE_FLAG]);
        }