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

            id     = gr.GetInt32();
            userId = gr.GetInt32();
            name   = gr.GetString();
            data   = WatchingSchemeData.DeserializeString(gr.GetString());
        }
Ejemplo n.º 2
0
        public WatchingScheme(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);
            int          i  = 0;

            id     = dr.GetInt32(i++);
            userId = dr.GetInt32(i++);
            name   = dr.GetString(i++);
            data   = WatchingSchemeData.Create(gr.GetString(i++));
        }