Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Id
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13204/Id
Modified Files:
ForeignGenerator.cs
Log Message:
Fixed performance issue regarding empty strings
Index: ForeignGenerator.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Id/ForeignGenerator.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ForeignGenerator.cs 28 Mar 2004 06:06:40 -0000 1.2
--- ForeignGenerator.cs 21 Sep 2004 09:58:24 -0000 1.3
***************
*** 34,38 ****
{
propertyName = (string)parms["property"];
! if(propertyName==null || propertyName==String.Empty)
throw new MappingException("param named \"property\" is required for foreign id generation strategy");
}
--- 34,38 ----
{
propertyName = (string)parms["property"];
! if(propertyName==null || propertyName.Length == 0)
throw new MappingException("param named \"property\" is required for foreign id generation strategy");
}
|