CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Web.Design.ObjectFieldInfo Class Reference

Contains schema information for a single object property. More...

Inheritance diagram for Csla.Web.Design.ObjectFieldInfo:

Public Member Functions

 ObjectFieldInfo (PropertyDescriptor field)
 Creates an instance of the object. More...
 

Properties

Type DataType [get]
 Gets the data type of the property. More...
 
bool Identity [get]
 Gets a value indicating whether this property is an identity key for the object. More...
 
bool IsReadOnly [get]
 Gets a value indicating whether this property is readonly. More...
 
bool IsUnique [get]
 Gets a value indicating whether this property must contain a unique value. More...
 
int Length [get]
 Gets the length of the property value. More...
 
string Name [get]
 Gets the property name. More...
 
bool Nullable [get]
 Gets a value indicating whether the property is nullable More...
 
int Precision [get]
 Gets the property's numeric precision. More...
 
bool PrimaryKey [get]
 Gets a value indicating whether the property is a primary key value. More...
 
int Scale [get]
 Gets the property's scale. More...
 

Detailed Description

Contains schema information for a single object property.

Definition at line 19 of file ObjectFieldInfo.cs.

Constructor & Destructor Documentation

◆ ObjectFieldInfo()

Csla.Web.Design.ObjectFieldInfo.ObjectFieldInfo ( PropertyDescriptor  field)

Creates an instance of the object.

Parameters
fieldThe PropertyInfo object describing the property.

Definition at line 35 of file ObjectFieldInfo.cs.

Property Documentation

◆ DataType

Type Csla.Web.Design.ObjectFieldInfo.DataType
get

Gets the data type of the property.

Definition at line 68 of file ObjectFieldInfo.cs.

◆ Identity

bool Csla.Web.Design.ObjectFieldInfo.Identity
get

Gets a value indicating whether this property is an identity key for the object.

Returns the optional value provided through the DataObjectField attribute on the property.

Definition at line 85 of file ObjectFieldInfo.cs.

◆ IsReadOnly

bool Csla.Web.Design.ObjectFieldInfo.IsReadOnly
get

Gets a value indicating whether this property is readonly.

Definition at line 94 of file ObjectFieldInfo.cs.

◆ IsUnique

bool Csla.Web.Design.ObjectFieldInfo.IsUnique
get

Gets a value indicating whether this property must contain a unique value.

Returns
Always returns True if the property is marked as a primary key, otherwise returns False.

Definition at line 108 of file ObjectFieldInfo.cs.

◆ Length

int Csla.Web.Design.ObjectFieldInfo.Length
get

Gets the length of the property value.

Returns the optional value provided through the DataObjectField attribute on the property.

Definition at line 121 of file ObjectFieldInfo.cs.

◆ Name

string Csla.Web.Design.ObjectFieldInfo.Name
get

Gets the property name.

Definition at line 129 of file ObjectFieldInfo.cs.

◆ Nullable

bool Csla.Web.Design.ObjectFieldInfo.Nullable
get

Gets a value indicating whether the property is nullable

Returns True for reference types, and for value types wrapped in the Nullable generic. The result can also be set to True through the DataObjectField attribute on the property.

Definition at line 145 of file ObjectFieldInfo.cs.

◆ Precision

int Csla.Web.Design.ObjectFieldInfo.Precision
get

Gets the property's numeric precision.

Returns
Always returns -1.

Definition at line 155 of file ObjectFieldInfo.cs.

◆ PrimaryKey

bool Csla.Web.Design.ObjectFieldInfo.PrimaryKey
get

Gets a value indicating whether the property is a primary key value.

Returns the optional value provided through the DataObjectField attribute on the property.

Definition at line 169 of file ObjectFieldInfo.cs.

◆ Scale

int Csla.Web.Design.ObjectFieldInfo.Scale
get

Gets the property's scale.

Returns
Always returns -1.

Definition at line 178 of file ObjectFieldInfo.cs.