Beispiel #1
0
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetDvdScanInfoDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetDvdScanInfoDelegate(SqlReader sqlr, CorrelationID crid, ref USR_DvdInfo usrd)
        {
            DvdInfo dvdi = new DvdInfo();

            dvdi.Code      = sqlr.Reader.GetString(0);
            dvdi.LastScan  = sqlr.Reader.GetDateTime(1);
            dvdi.FirstScan = sqlr.Reader.GetDateTime(2);
            dvdi.Title     = sqlr.Reader.GetString(3);

            usrd          = USR_DvdInfo.FromTCSR(USR.SuccessCorrelate(crid));
            usrd.TheValue = dvdi;
        }
Beispiel #2
0
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetDvdScanInfoExDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoExDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetDvdScanInfoExDelegate(SqlReader sqlr, CorrelationID crid, ref USR_DvdInfoEx usrd)
        {
            USR_DvdInfo dvdInfo = null;

            ReaderGetDvdScanInfoDelegate(sqlr, crid, ref dvdInfo);

            DvdInfoEx dvdix = DvdInfoEx.FromDvdInfo(dvdInfo.TheValue);

            dvdix.Summary        = sqlr.Reader.IsDBNull(4) ? null : sqlr.Reader.GetString(4);
            dvdix.Classification = sqlr.Reader.IsDBNull(5) ? null : sqlr.Reader.GetString(5);
            dvdix.MediaType      = sqlr.Reader.IsDBNull(6) ? null : sqlr.Reader.GetString(6);
            dvdix.CoverSrc       = sqlr.Reader.IsDBNull(7) ? null : sqlr.Reader.GetString(7);

            usrd          = USR_DvdInfoEx.FromTCSR(USR.SuccessCorrelate(crid));
            usrd.TheValue = dvdix;
        }