Example #1
0
        public ParamInsert ToParamInsert()
        {
            var pInsert = ParamInsert.Instance();

            pInsert.Insert(GetTableName());
            EachColumn(IsUpdate: false, handler: name => pInsert.Column(name, this[name]));
            return(pInsert);
        }
        public ParamInsert ToParamInsert()
        {
            var settings = XElement.Parse(settingXml);
            var pInsert  = ParamInsert.Instance().Insert(getXmlElementValue(settings, "table"));

            parseColumns(settings, (name, value) => pInsert.Column(name, value));
            return(pInsert);
        }