Class SizeAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Specifies the maximum number of characters that can be stored in a column which is created to store the data of a property or field.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class SizeAttribute : Attribute
- Inheritance
-
SizeAttribute
- Inherited Members
Constructors
SizeAttribute(int)
Initializes a new instance of the SizeAttribute class.
public SizeAttribute(int size)
Parameters
size
intAn integer value which specifies the maximum number of characters that can be stored. This value is assigned to the SizeAttribute.Size property.
Fields
DefaultStringMappingFieldSize
Specifies the default size of the database column which the member’s data is stored in. The default value is 100.
public const int DefaultStringMappingFieldSize = 100
Field Value
Unlimited
Specifies the unlimited format size of the database column which the member’s data is stored in.
public const int Unlimited = -1
Field Value
Properties
Size
Gets the size of the database column which the member’s data is stored in.
public int Size { get; }
Property Value
- int
An integer value which specifies the maximum number of characters that can be stored.