What is a RepositoryDataType?
From Sense/Net 6.0 Wiki
(Redirected from Repository Datatypes)
Contents |
[edit] Overview
Repository Datatypes are the most basic data types within the Sense/Net 6.0 system. All fields and properties of the Content Types are mapped to one of these. They are in turn mapped to, and represented as internal database types.
[edit] List of Repository Datatypes
- String
- A string with a maximum length of 450 characters. It is mapped to the String .NET type.
- Text
- A textual type with no length restrictions, mapped to the String .NET type. Fields mapped to Text can only be filtered using full-text searches.
- Int
- Equivalent to the Int32 .NET type
- Currency
- Equivalent to the Decimal .NET type
- DateTime
- Equivalent to the DateTime .NET type
- Binary
- Equivalent to the BinaryData .NET type
- Reference
- A lists of Nodes. It is Mapped to the SenseNet.ContentRepository.Storage.NodeList<SenseNet.ContentRepository.Storage.Node> class.
[edit] A note on value ranges
As all data is persisted to the database, the value ranges of Repository Datatypes depend on the internal database types rather than the .NET types they are mapped to.
This means that of the data provider type and the associated .NET data type, the narrower value range will be used. Eg. an attempt to persist the year 1600 into a DateTime field may result in a null value, as the data provider cannot store it, even though it can be represented by a .NET DateTime object.
