Class RefCounts
Utility class for dealing with reference counters.
Inherited Members
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public sealed class RefCounts
Methods
AllowBlank(RefCountsRow, FieldInfo)
Checks if the unique flag is set for the field.
Declaration
public static bool AllowBlank(RefCountsRow refCount, FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
RefCountsRow | refCount | |
FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
bool |
AllowBlank(FieldInfo)
Checks if the unique flag is set for the field.
Declaration
public static bool AllowBlank(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
bool |
CreateCounter(FieldInfo, int)
Private SuperOffice function for creating new counters.
Declaration
public RefCountsRow CreateCounter(FieldInfo fieldInfo, int recordId)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo | Field to get the next number for. |
int | recordId | The record id to get the number for. |
Returns
Type | Description |
---|---|
RefCountsRow | RefCountsRow representing the counter. |
Exceptions
Type | Condition |
---|---|
SecurityException | Exception is thrown if code accessing this methid is not sigend with the SuperOffice strong name key. |
GetNext(FieldInfo)
Get the next number from a FieldInfo definition.
Declaration
public static int GetNext(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo | Field to get the next number for. |
Returns
Type | Description |
---|---|
int | The next number for the field. |
Remarks
'0' is returned if there is no previous information about the row.
GetNext(FieldInfo, int)
Get the next number from a FieldInfo definition.
Declaration
public static int GetNext(FieldInfo fieldInfo, int recordId)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo | Field to get the next number for. |
int | recordId | The record id to get the number for. |
Returns
Type | Description |
---|---|
int | The next number for the field. |
Remarks
'0' is returned if there is no previous information about the row.
Unique(RefCountsRow, FieldInfo)
Checks if the unique flag is set for the field.
Declaration
public static bool Unique(RefCountsRow refCount, FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
RefCountsRow | refCount | |
FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
bool |
Unique(FieldInfo)
Checks if the unique flag is set for the field.
Declaration
public static bool Unique(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
bool |