From: Michael D. <mik...@us...> - 2004-08-28 05:26:45
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlCommand In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5117/NHibernate/SqlCommand Modified Files: SqlSelectBuilder.cs Log Message: Modified SetFromClause in SqlSelectBuilder to take a SqlString. Removed some of the HACKs that were in classes using that method. Index: SqlSelectBuilder.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlCommand/SqlSelectBuilder.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SqlSelectBuilder.cs 16 Aug 2004 05:18:52 -0000 1.2 --- SqlSelectBuilder.cs 28 Aug 2004 05:26:36 -0000 1.3 *************** *** 54,57 **** --- 54,69 ---- /// <summary> + /// Sets the text that should appear after the FROM + /// </summary> + /// <param name="fromClause">The fromClause in a SqlString</param> + /// <returns>The SqlSelectBuilder</returns> + public SqlSelectBuilder SetFromClause(SqlString fromClause) + { + // it is safe to do this because a fromClause will have no + // parameters + return SetFromClause( fromClause.ToString() ); + } + + /// <summary> /// Sets the text that should appear after the ORDER BY. /// </summary> |