From: Michael D. <mik...@us...> - 2004-07-18 03:05:16
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9951/Driver Modified Files: DriverBase.cs IDriver.cs Log Message: Added ability for a Driver to disable calls to IDbCommand.Prepare() Index: DriverBase.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/DriverBase.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DriverBase.cs 18 May 2004 05:02:27 -0000 1.4 --- DriverBase.cs 18 Jul 2004 03:05:08 -0000 1.5 *************** *** 81,84 **** --- 81,89 ---- } + public virtual bool SupportsPreparingCommands + { + get { return true; } + } + #endregion } Index: IDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/IDriver.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IDriver.cs 18 May 2004 05:02:27 -0000 1.3 --- IDriver.cs 18 Jul 2004 03:05:08 -0000 1.4 *************** *** 155,158 **** --- 155,175 ---- bool SupportsMultipleOpenReaders { get; } + /// <summary> + /// Does this Driver support IDbCommand.Prepare(). + /// </summary> + /// <remarks> + /// <para> + /// A value of <c>false</c> indicates that an exception would be thrown or the + /// company that produces the Driver we are wrapping does not recommend using + /// IDbCommand.Prepare(). + /// </para> + /// <para> + /// A value of <c>true</c> indicates that calling IDbCommand.Prepare() will function + /// fine on this Driver. + /// </para> + /// </remarks> + bool SupportsPreparingCommands { get; } + + } } |