Ejemplo n.º 1
0
        private static void CreateFields(ClientContext context)
        {
            Deploy deploy = new Deploy();

            string XMLFile = GetFolderRoot() + @"\Fields\FieldDefinition.xml";
            XElement doc = XElement.Load(XMLFile);
            IEnumerable<XElement> fields =
                from e1 in doc.Elements()
                select e1;
            foreach (XElement e in fields)
            {
                string result = deploy.CreateFields(context, e.ToString());
                if (result != "Success")
                    Log(result);
            }
        }
Ejemplo n.º 2
0
        private static void CreateFields(ClientContext context)
        {
            Deploy deploy = new Deploy();

            string   XMLFile = GetFolderRoot() + @"\Fields\FieldDefinition.xml";
            XElement doc     = XElement.Load(XMLFile);
            IEnumerable <XElement> fields =
                from e1 in doc.Elements()
                select e1;

            foreach (XElement e in fields)
            {
                string result = deploy.CreateFields(context, e.ToString());
                if (result != "Success")
                {
                    Log(result);
                }
            }
        }