Esempio n. 1
0
        internal static List <Tag> ReadTagData()
        {
            var allTags = new List <Tag>();

            var reader = DataReaderGenerator.Tags();

            while (reader.Read())
            {
                var tag = new Tag();
                tag.Name        = reader["name"] as string;
                tag.ID          = reader["id"] as string;
                tag.Description = reader["desc"] as string;
                tag.UnitId      = reader["unit_id"] as string;
                allTags.Add(tag);
            }
            return(allTags);
        }