Esempio n. 1
0
        public SQLContainer(IDatabaseAccessor accessor, Counter pcounter = null, Counter tcounter = null)
        {
            if (accessor == null)
            {
                throw new ArgumentNullException("accessor");
            }
            this.accessor = accessor;

            _tCounter       = tcounter == null ? new Counter() : tcounter;
            _pCounter       = pcounter == null ? new Counter() : pcounter;
            SQLParamCreater = new SQLParamCreater(_pCounter);
        }
Esempio n. 2
0
 public SQLScriptParam NewParameter(string name, object value)
 {
     //var pnm = string.Format("{0}_{1}", (string.IsNullOrWhiteSpace(name) ? "param" : name.Trim()), _pCounter.Count());
     //return new SQLScriptParam(pnm, value);
     return(SQLParamCreater.NewParameter(name, value));
 }
Esempio n. 3
0
 public SQLScriptParam NewParameter(object value)
 {
     return(SQLParamCreater.NewParameter("param", value));
 }