Class FacetAttribute
Declares storage facets for a member — a maximum Length for text, a
Precision/Scale for decimals. Relational DDL sizes the column with them
(varchar(n), numeric(p,s)); stores without sized types ignore them.
[AttributeUsage(AttributeTargets.Property)]
public sealed class FacetAttribute : Attribute
- Inheritance
-
FacetAttribute
- Inherited Members
Properties
Length
The maximum text length (0 = the store's default, usually unbounded).
public int Length { get; set; }
Property Value
Precision
The total number of significant digits (0 = the store's default).
public int Precision { get; set; }
Property Value
Scale
The number of digits after the decimal point.
public int Scale { get; set; }