public Watching(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id        = gr.GetInt32();
            userId    = gr.GetInt32();
            startTime = gr.GetDateTime();
            endTime   = gr.GetDateTime();
            data      = WatchingData.DeserializeString(gr.GetString());
        }
示例#2
0
        public Watching(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);
            int          i  = 0;

            id        = dr.GetInt32(i++);
            userId    = dr.GetInt32(i++);
            startTime = gr.GetDateTime(i++);
            endTime   = gr.GetDateTime(i++);
            data      = WatchingData.Create(gr.GetString(i++));
        }