Exemplo n.º 1
0
        private static void CreateAndAddNewAttribute(string title)
        {
            LogAttributeRecord record = LogAttributeRecord.CreateRecord();

            record.Value = title;
            AttributeIds.Add(title, record.Id);
            record.Save();
        }
Exemplo n.º 2
0
        private static void CreateAndAddNewAttribute(string title)
        {
            var newAttribute = LogAttributeRecord.CreateRecord();

            newAttribute.Value = title;
            AttributeIds.Add(title, newAttribute.Id);
            newAttribute.Save();
        }
Exemplo n.º 3
0
        private static void LoadAttributes()
        {
            var attrs = LogAttributeRecord.FindAll();

            foreach (var attr in attrs)
            {
                if (AttributeIds.ContainsKey(attr.Value))
                {
                    attr.DeleteLater();
                    continue;
                }
                AttributeIds.Add(attr.Value, attr.Id);
            }
        }