TypeVersion Class |
Namespace: VelocityDb.TypeInfo
The TypeVersion type exposes the following members.
Name | Description | |
---|---|---|
AllowOtherTypesOnSamePage |
Objects can be stored more efficiently if all object types on the page share the same type. By default mixed types are allowed. Override this to return false for types that should not share pages with other types.
(Overrides OptimizedPersistableAllowOtherTypesOnSamePage.) | |
AnyFieldIndex |
Does managed type or its base classes include a field index ?
| |
AnyTypeIndex |
Does managed type or its base classes include a type index ?
| |
AutoIncrement |
Does managed type or its base classes include an auto increment field?
| |
BaseShape |
Get the base TypeVersion or null if none exist
| |
Cache |
By default, the an object cache is determined by a SessionBase constructor parameter but certain types of objects may be re opened more frequently than others, for such types override this to return a value.
Caching objects this way can cause out of date object references to stay active due to lacking code to invalidate a cached object when referenced objects are replaced.
We will add this automatic invalidation as soon as possible but for now use caution when caching objects. Caching objects that does not strongly reference other objects is OK to do.
(Overrides OptimizedPersistableCache.) | |
CountStart |
Set where AutoIncrement counter should start
| |
DataMemberArray |
Get an array of fields represented as DataMember. Does not include fields from base classes.
| |
FieldIndex |
Does managed type include a field index ?
| |
IsFixedSize |
A type is fixed size if it only has fixed size fields
| |
IsISerializable | ||
IsString |
Is this schema for type System.String ?
| |
IsValueType |
Is managed type a ValueType ?
| |
Type |
Get the .NET type of the schema class
| |
TypeIndex |
Does managed type include a type index ?
| |
VelocityDbType |
Get schema class object managing a particular .NET type.
|
Name | Description | |
---|---|---|
EncodeForCsv |
Encode a persistent object as a string for csv export
| |
Equals | Indicates whether the current object is equal to another object of the same type. | |
GetDataMemberList |
Get a list of all DataMember of this type including base classes.
| |
LoadMembers |
Loads member fields from persistent storage
| |
ObjectBytesFromStrings |
Converts string representation of an object into VelocityDB object byte representation.
| |
PersistRefences |
Persists references from an object
| |
ReadMe | (Overrides OptimizedPersistableReadMe(TypeVersion, Byte, Int32, SessionBase, Page, Boolean, Schema, Boolean, ListIOptimizedPersistable, Int32, Int32, Boolean).) | |
SetCount | ||
ToString | (Overrides OptimizedPersistableToString.) | |
TotalShapeNumberOfBytes |
Get the total size of an object of the managed type (including base class fields)
| |
Unpersist |
Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
(Overrides OptimizedPersistableUnpersist(SessionBase).) |
Name | Description | |
---|---|---|
ToStringDetails(SessionBase, Boolean) | Overloaded.
Object details as a string
(Defined by Utilities.) | |
ToStringDetails(Schema, TypeVersion, Boolean) | Overloaded.
Currently only used by Database Manager
(Defined by Utilities.) |