Пример #1
0
 public SQLBuilder(string connectionString, SQLCommandType commandType)
 {
     command = new SQLCommand(connectionString)
     {
         CommandType = commandType
     };
 }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed || !disposing)
            {
                return;
            }
            if (command != null)
            {
                command.Dispose();
            }

            command  = null;
            disposed = true;
        }