Example #1
0
 /// <summary>
 ///     Remove all facets except Nullable (i.e. the setting of Nullable remains as is).
 /// </summary>
 internal void RemoveAllFacetsExceptNullable()
 {
     if (null != DefaultValue)
     {
         DefaultValue.Delete();
         _defaultAttr = null;
     }
     if (null != MaxLength)
     {
         MaxLength.Delete();
         _maxLengthAttr = null;
     }
     if (null != FixedLength)
     {
         FixedLength.Delete();
         _fixedLengthAttr = null;
     }
     if (null != Precision)
     {
         Precision.Delete();
         _precisionAttr = null;
     }
     if (null != Scale)
     {
         Scale.Delete();
         _scaleAttr = null;
     }
     if (null != Unicode)
     {
         Unicode.Delete();
         _unicodeAttr = null;
     }
     if (null != Collation)
     {
         Collation.Delete();
         _collationAttr = null;
     }
 }