ATMLDataAccessLibrary.db.beans.TestSignalBean.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(_ID) )
                fieldMap[_ID] = reader[_ID];
            else
                fieldMap.Add(_ID, reader[_ID]);
            if( originalFieldMap.ContainsKey(_ID) )
                originalFieldMap[_ID] = reader[_ID];
            else
                originalFieldMap.Add(_ID, reader[_ID]);
            if( fieldMap.ContainsKey(_LIBRARY_UUID) )
                fieldMap[_LIBRARY_UUID] = reader[_LIBRARY_UUID];
            else
                fieldMap.Add(_LIBRARY_UUID, reader[_LIBRARY_UUID]);
            if( originalFieldMap.ContainsKey(_LIBRARY_UUID) )
                originalFieldMap[_LIBRARY_UUID] = reader[_LIBRARY_UUID];
            else
                originalFieldMap.Add(_LIBRARY_UUID, reader[_LIBRARY_UUID]);
            if( fieldMap.ContainsKey(_SIGNAL_NAME) )
                fieldMap[_SIGNAL_NAME] = reader[_SIGNAL_NAME];
            else
                fieldMap.Add(_SIGNAL_NAME, reader[_SIGNAL_NAME]);
            if( originalFieldMap.ContainsKey(_SIGNAL_NAME) )
                originalFieldMap[_SIGNAL_NAME] = reader[_SIGNAL_NAME];
            else
                originalFieldMap.Add(_SIGNAL_NAME, reader[_SIGNAL_NAME]);
            if( fieldMap.ContainsKey(_SIGNAL_CONTENT) )
                fieldMap[_SIGNAL_CONTENT] = reader[_SIGNAL_CONTENT];
            else
                fieldMap.Add(_SIGNAL_CONTENT, reader[_SIGNAL_CONTENT]);
            if( originalFieldMap.ContainsKey(_SIGNAL_CONTENT) )
                originalFieldMap[_SIGNAL_CONTENT] = reader[_SIGNAL_CONTENT];
            else
                originalFieldMap.Add(_SIGNAL_CONTENT, reader[_SIGNAL_CONTENT]);
            if( fieldMap.ContainsKey(_LAST_UPDATE) )
                fieldMap[_LAST_UPDATE] = reader[_LAST_UPDATE];
            else
                fieldMap.Add(_LAST_UPDATE, reader[_LAST_UPDATE]);
            if( originalFieldMap.ContainsKey(_LAST_UPDATE) )
                originalFieldMap[_LAST_UPDATE] = reader[_LAST_UPDATE];
            else
                originalFieldMap.Add(_LAST_UPDATE, reader[_LAST_UPDATE]);
        }