Skip to end of metadata
Go to start of metadata

Definition : A .NET type in STSdb 4.0 is linear, if it is one of the following types:

  1. Primitive type - Boolean , Char , SByte , Byte , Int16 , UInt16 , Int32 , UInt32 , Int64 , UInt64 , Single , Double , Decimal , DateTime , String ,   byte [] ;
  2. Classes (with public default constructor) and structures, containing public read/write properties or fields with primitive types

For example, all available Slot types in STSdb 4.0 - Slots <T0> , Slots <T0, T1> , Slots <T0, T1 ,… > ( when all Ti are primitive types) are also linear types.

Following the above definition, the named type Tick is also linear:

public class Tick
{
    public string Symbol { get; set; }
    public DateTime Timestamp { get; set; }
    public double Price { get; set; }
}

It is not primitive but it contains properties that are all primitive.

Linear types are frequently used as composed keys in STSdb 4.0 tables. The linear types can be anonymous and named. The linear type set includes all primitive types and all types that not have complex sub-types.

Named Types    Go to Home    Supported Database Types

  • No labels