BGField.cs -is a table field, which has its own type. The API list is not full.
Strictly speaking, each type has its own field. For example, BGFieldInt.cs - is a field of type int, etc. However, you do not need to know anything about these classes, all you need to know is field's type
Main API
| Method/Property | Returns | Description |
|---|---|---|
| GetValue | object | Get field's value for provided entity |
| SetValue | void | Set field's value for provided entity |
| this[int entityIndex] | T | Get/Set value by entity index. This is the fastest method to get entity value. T means generic is used, so for int field- T meas int value, for long T means long etc. The method is defined on BGField<T> class |
|
||
| this[BGId entityId] | T | Get/Set value by entity id. This is much slower method, than getting value by entity Index. T means generic is used, so for int field- T meas int value, for long T means long etc. |
|
||
Additional API
| Method/Property | Returns | Description |
|---|---|---|
| IsDeleted | bool | was the field deleted or unloaded |
| CopyValue(BGCopyCellRequest request) | void | copy the value from one entity to another |