예제 #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);
        }
예제 #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);
        }
예제 #3
0
파일: ListInfo45.cs 프로젝트: 0anion0/IBN
        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;
        }