Esempio n. 1
0
        public static ListInfo45 Load(IDataRecord reader)
        {
            ListInfo45 ret = new ListInfo45();

            ret._listId       = (int)reader["ListId"];
            ret._folderId     = (int)reader["FolderId"];
            ret._title        = reader["Title"].ToString();
            ret._description  = reader["Description"].ToString();
            ret._typeId       = (int)reader["TypeId"];
            ret._statusId     = (int)reader["StatusId"];
            ret._creatorId    = (int)reader["CreatorId"];
            ret._creationDate = (DateTime)reader["CreationDate"];

            return(ret);
        }
Esempio n. 2
0
        public static IDictionary <int, ListInfo45> LoadList(DBHelper source)
        {
            //Load all exists list types
            LoadListTypes(source);

            Dictionary <int, ListInfo45> ret = new Dictionary <int, ListInfo45>();

            using (IDataReader reader = source.RunTextDataReader("SELECT * FROM [LISTS]"))
            {
                while (reader.Read())
                {
                    ListInfo45 item = Load(reader);
                    if (!ret.ContainsKey(item._listId))
                    {
                        ret.Add(item._listId, item);
                    }
                }
            }

            return(ret);
        }
Esempio n. 3
0
        public static ListInfo45 Load(IDataRecord reader)
        {
            ListInfo45 ret = new ListInfo45();

            ret._listId = (int)reader["ListId"];
            ret._folderId = (int)reader["FolderId"];
            ret._title = reader["Title"].ToString();
            ret._description = reader["Description"].ToString();
            ret._typeId = (int)reader["TypeId"];
            ret._statusId = (int)reader["StatusId"];
            ret._creatorId = (int)reader["CreatorId"];
            ret._creationDate = (DateTime)reader["CreationDate"];

            return ret;
        }