Esempio n. 1
0
        public static ObjectItem GetObject(string name, DbContextEx db)
        {
            ObjectItem temp = new ObjectItem();

            string opsXml = __Config[name]["Object"].OuterText;

            if (opsXml.IndexOf("{db}") > 0)
            {
                opsXml = opsXml.Replace("{db}", db.getSchema());
            }

            XDom.Bind(temp, opsXml);

            return(temp);
        }
Esempio n. 2
0
        public static ObjectItem GetObject(string name, DbContextEx db)
        {
            ObjectItem temp = new ObjectItem();

            string opsXml = __Config[name]["Object"].OuterText;

            if (opsXml.IndexOf("{db}") > 0)
                opsXml = opsXml.Replace("{db}", db.getSchema());

            XDom.Bind(temp, opsXml);

            return temp;
        }