Example #1
0
        public void RequestCdoDefinition()
        {
            ICsiMetaData data = base.FindChildByName("__metadata") as ICsiMetaData;

            if (data == null)
            {
                data = new CsiMetaData(this.GetOwnerDocument(), this);
            }
            data.RequestCdoDefinition();
        }
Example #2
0
        public void RequestFieldDefinition()
        {
            CsiMetaData sourceElement = base.FindChildByName("__metadata") as CsiMetaData;

            if (sourceElement == null)
            {
                sourceElement = new CsiMetaData(this.GetOwnerDocument(), this);
            }
            CsiXmlHelper.FindCreateSetValue(sourceElement, "__fieldDef", null);
        }
        public virtual Array GetUserDefinedFields()
        {
            string      tagName = string.Concat(new object[] { "__CDODefinition", '.', "__fieldDefs", '.', "__userDefinedFields" });
            CsiMetaData impl    = base.FindChildByName(tagName) as CsiMetaData;
            ArrayList   list    = new ArrayList();

            if (impl != null)
            {
                IEnumerator enumerator = impl.GetChildrenByName("__userDefinedField").GetEnumerator();
                while (enumerator.MoveNext())
                {
                    list.Add(enumerator.Current);
                }
            }
            return(list.ToArray());
        }