Revision: 4473
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4473&view=rev
Author: fabiomaulo
Date: 2009-06-15 03:32:04 +0000 (Mon, 15 Jun 2009)
Log Message:
-----------
Minor refactoring
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Mapping/Column.cs
Modified: trunk/nhibernate/src/NHibernate/Mapping/Column.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Mapping/Column.cs 2009-06-15 03:14:55 UTC (rev 4472)
+++ trunk/nhibernate/src/NHibernate/Mapping/Column.cs 2009-06-15 03:32:04 UTC (rev 4473)
@@ -412,16 +412,21 @@
return quoted ? '`' + name + '`' : name;
}
- private bool IsCaracteristicsDefined()
+ public bool IsCaracteristicsDefined()
{
- return length.HasValue || precision.HasValue || scale.HasValue;
+ return IsLengthDefined() || IsPrecisionDefined();
}
- private bool IsPrecisionDefined()
+ public bool IsPrecisionDefined()
{
return precision.HasValue || scale.HasValue;
}
+ public bool IsLengthDefined()
+ {
+ return length.HasValue;
+ }
+
#region ICloneable Members
/// <summary> Shallow copy, the value is not copied</summary>
public object Clone()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|