Changed Number field to 256 characters

This commit is contained in:
Rich 2009-07-24 20:50:27 +00:00
parent 921b269a28
commit 73407f36d0
8 changed files with 26 additions and 2 deletions

View File

@ -173,6 +173,9 @@ namespace VEPROMS.CSLA.Library
}
}
private string _Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
@ -662,7 +665,7 @@ namespace VEPROMS.CSLA.Library
{
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Number", 30));
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Number", 256));
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Text", 1073741823));

View File

@ -102,6 +102,9 @@ namespace VEPROMS.CSLA.Library
}
}
private string _Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@ -103,6 +103,9 @@ namespace VEPROMS.CSLA.Library
}
private byte[] _LastChanged = new byte[8];//timestamp
private string _Content_Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Content_Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@ -61,6 +61,9 @@ namespace VEPROMS.CSLA.Library
}
}
private string _Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
@ -257,7 +260,7 @@ namespace VEPROMS.CSLA.Library
{
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Number", 30));
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Number", 256));
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("Text", 1073741823));

View File

@ -114,6 +114,9 @@ namespace VEPROMS.CSLA.Library
}
private byte[] _LastChanged = new byte[8];//timestamp
private string _Content_Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Content_Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@ -211,6 +211,9 @@ namespace VEPROMS.CSLA.Library
}
private byte[] _LastChanged = new byte[8];//timestamp
private string _Content_Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Content_Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@ -208,6 +208,9 @@ namespace VEPROMS.CSLA.Library
}
private byte[] _LastChanged = new byte[8];//timestamp
private string _Content_Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Content_Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@ -177,6 +177,9 @@ namespace VEPROMS.CSLA.Library
}
private byte[] _LastChanged = new byte[8];//timestamp
private string _Content_Number = string.Empty;
/// <summary>
/// Increased from 30 to 256 to support RTF symbols
/// </summary>
public string Content_Number
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]