Skip to content

Latest commit

 

History

History
85 lines (59 loc) · 9.38 KB

fcSDK~FChoice.Foundation.FCGeneric_members.md

File metadata and controls

85 lines (59 loc) · 9.38 KB

FCGeneric Class Members

The following tables list the members exposed by FCGeneric.

Public Fields

  Name Description
Public Fieldstatic (Shared in Visual Basic) MAX_DATE Maximum possible date that is allowed to be entered for a date field.  
Public Fieldstatic (Shared in Visual Basic) MIN_DATE Minimum possible date that is allowed to be entered for a date field.  
Public Fieldstatic (Shared in Visual Basic) NOW_DATE When date fields are set to this value the current server datetime will be entered instead.  

Public Properties

  Name Description
Public Property ChildGenerics Returns a dictionary (keyed by parent to child relation name) of child generics belonging to this FCGeneric.  
Public Property Count Returns the number of rows currently populated by the Query or AddNew methods.  
Public Property DataFields Collection of data fields that will be returned when Query is invoked. If no fields are selected all fields are returned.  
Public Property DataRestrictionsEnabled
Sets whether or not this FCGeneric will have the DataRestrictions feature enabled if available.

  | | Public Property | DeleteRelationsToUnrelate |   | | Public Property | Filter | This is the root filter used to constrain rows returned during Query operations. Initially there are no filters present with filters being added using the AddFilter method.   | | Public Property | IncludeRelations | Queries will retrieve all relation fields for the Generic   | | Public Property | IsDistinct | Is this a Generic that should query for only discinct rows.   | | Public Property | IsSynchronized | Gets a value indicating whether access to the FCGeneric is synchronized (thread-safe).   | | Public Property | MaximumRows | Controls the maximum number of rows to be returned by the Genric Query.   | | Public Property | QueryEmptyToNull |

Sets whether or not this FCGeneric will convert filters on empty strings into filters on Queries that check IS NULL or IS NOT NULL.

  | | Public Property | RawFilter |

Sets an optional WHERE clause constraint. (WARNING: See remarks for potential security implications)

  | | Public Property | RestrictionGroup | Override the Session Data Restriction Group of this Generic. The ChangeRestrictionGroup method is available as a helper.   | | Public Property | SearchableFieldPrefix |   | | Public Property | SetNullStringsToEmpty | Sets whether or not this FCGeneric will convert a null reference (Nothing in Visual Basic) to empty strings.   | | Public Property | SyncRoot | Gets an object that can be used to synchronize access to the FCGeneric.   | | Public Property | TableName | Returns the name of the database table this FCGeneric is based on.   |

Public Methods

  Name Description
Public Method AppendFilter Overloaded. Adds a filter to constrain the results of an FCGeneric Query against a numeric DataField.  
Public Method AppendFilterBetween Overloaded. Adds a specialized filter to constrain the results of an FCGeneric Query to be between two Integer values.  
Public Method AppendFilterInList Overloaded. Adds a filter to constrain the results of an FCGeneric Query against a list of possible Integer values**.**  
Public Method AppendFilterIsNull Adds a filter to constrain the results of an FCGeneric Query against NULL or NOT NULL fields.  
Public Method AppendSort Overloaded. Adds a field by which the results of an FCGeneric Query will be sorted.  
Public Method AssignObjID  
Public Method ChangeRestrictionGroup Change the Data Restriction Group of this generic instance overriding the Session default. This method is a helper for when you only know the name of the restriction group.  
Public Method ClearFilters Clears all filters that have been appended to this generic.  
Public Method ClearSorts Clears all sort operations that have been appended to this generic.  
Public Method CopyTo Copies all the rows of the current FCGeneric into to a one-dimensional Array.  
Public Method DeleteAll Delete all rows present in this FCGeneric.  
Public Method GetEnumerator Returns an IEnumerator for the FCGeneric.  
Public Method Query Overloaded. Causes the generic object to query the database table or view using the optionally specified data fields, filters, and sort orders  
Public Method Update Overloaded. Updates changes to a single GenericDataRow  
Public Method UpdateAll Overloaded. Updates all modified rows of the FCGeneric.  

Public Events

  Name Description
Public Event MaximumRowsExceeded This event is fired when the MaximumRows property is set and a Query operation has returned too many rows.  

Reference

FCGeneric Class
FChoice.Foundation Namespace