attahameed / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Provide parameterless constructor for SqlErrorLog #286

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Proposal: parameterless constructor for SqlErrorLog

Reason: I have an object that inherits from SqlErrorLog that is also 
responsible for dicovering the proper SQL connection string to use, therefore 
the connection string is not known when the object is initialized.

In my constructor I call base("unknown") to prevent errors from being thrown 
(as NULL throws exception.) I "discover" what connection string is needed, then 
I set it by overriding the ConnectionString property.  This is very dirty.

Original issue reported on code.google.com by oddj...@gmail.com on 26 Mar 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Delete this proposal.  
Just inherit from ErrorLog base class and use the SQLErrorLog as a private 
member, overriding required methods and simply passing on to the SqlErrorLog.

Original comment by oddj...@gmail.com on 16 Apr 2012 at 12:05

GoogleCodeExporter commented 8 years ago
Per “Delete this proposal.”

Original comment by azizatif on 16 Apr 2012 at 12:40