1
Vote

SqlServerCoconutDal private methods could be protected

description

These private helper methods could be made protected so that a class that derives from SqlServerCoconutDal can make use of them.
            CheckConnection();
            GetDbConnection();
            GetDbCommand(command, conn);
            InitializeCommand(cmd, parameters);
For example, a theoretical AsyncSqlServerCoconutDal could make use of these methods in its own BeginGetReader method, without having to duplicate that standard functionality.

comments

mafue wrote Jul 27, 2012 at 9:55 PM

LastError setter could also be protected for the same reason.