Maintains metadata about a property. More...
Public Member Functions | |
PropertyInfo (string name) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, RelationshipTypes relationship) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, T defaultValue) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, string friendlyName) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, string friendlyName, Type containingType) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, string friendlyName, Type containingType, T defaultValue) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, string friendlyName, Type containingType, RelationshipTypes relationship) | |
Creates a new instance of this class. More... | |
PropertyInfo (string name, string friendlyName, Type containingType, T defaultValue, RelationshipTypes relationship) | |
Creates a new instance of this class. More... | |
System.Reflection.PropertyInfo | GetPropertyInfo () |
Gets the System.Reflection.PropertyInfo object representing the property. More... | |
Static Public Member Functions | |
static T | DataBindingFriendlyDefault () |
Creates the CSLA Data Binding Friendly default for the given type T. More... | |
Protected Member Functions | |
virtual Core.FieldManager.IFieldData | NewFieldData (string name) |
Create and return a new IFieldData object to store an instance value for this property. More... | |
Properties | |
string | Name [get] |
Gets the property name value. More... | |
Type | Type [get] |
Gets the type of the property. More... | |
virtual string | FriendlyName [get] |
Gets the friendly display name for the property. More... | |
virtual T | DefaultValue [get] |
Gets the default initial value for the property. More... | |
RelationshipTypes | RelationshipType [get] |
Gets the relationship between the declaring object and the object reference in the property. More... | |
bool | IsChild [get] |
Gets a value indicating whether this property references a child in the object graph. More... | |
Properties inherited from Csla.Core.IPropertyInfo | |
Type | Type [get] |
Gets the type of the property. More... | |
string | FriendlyName [get] |
Gets the friendly display name for the property. More... | |
object | DefaultValue [get] |
Gets the default initial value for the property. More... | |
RelationshipTypes | RelationshipType [get] |
Gets the relationship between the declaring object and the object reference in the property. More... | |
int | Index [getset] |
Gets or sets the index position for the managed field storage behind the property. More... | |
bool | IsChild [get] |
Gets a value indicating whether this property references a child in the object graph. More... | |
Properties inherited from Csla.Core.IMemberInfo | |
string | Name [get] |
Gets the member name value. More... | |
Maintains metadata about a property.
T | Data type of the property. |
Definition at line 21 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name | ) |
Creates a new instance of this class.
name | Name of the property. |
Definition at line 27 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
RelationshipTypes | relationship | ||
) |
Creates a new instance of this class.
name | Name of the property. |
relationship | Relationship with referenced object. |
Definition at line 36 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
T | defaultValue | ||
) |
Creates a new instance of this class.
name | Name of the property. |
defaultValue | Default value for the property. |
Definition at line 47 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
string | friendlyName | ||
) |
Creates a new instance of this class.
name | Name of the property. |
friendlyName | Friendly display name for the property. |
Definition at line 58 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
string | friendlyName, | ||
Type | containingType | ||
) |
Creates a new instance of this class.
name | Name of the property. |
friendlyName | Friendly display name for the property. |
containingType | Factory to provide display name from attributes. |
Definition at line 72 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
string | friendlyName, | ||
Type | containingType, | ||
T | defaultValue | ||
) |
Creates a new instance of this class.
name | Name of the property. |
friendlyName | Friendly display name for the property. |
containingType | Factory to provide display name from attributes. |
defaultValue | Default value for the property. |
Definition at line 89 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
string | friendlyName, | ||
Type | containingType, | ||
RelationshipTypes | relationship | ||
) |
Creates a new instance of this class.
name | Name of the property. |
friendlyName | Friendly display name for the property. |
containingType | Factory to provide display name from attributes. |
relationship | Relationship with referenced object. |
Definition at line 104 of file Csla/PropertyInfo.cs.
Csla.PropertyInfo< T >.PropertyInfo | ( | string | name, |
string | friendlyName, | ||
Type | containingType, | ||
T | defaultValue, | ||
RelationshipTypes | relationship | ||
) |
Creates a new instance of this class.
name | Name of the property. |
friendlyName | Friendly display name for the property. |
containingType | Factory to provide display name from attributes. |
defaultValue | Default value for the property. |
relationship | Relationship with referenced object. |
Definition at line 123 of file Csla/PropertyInfo.cs.
|
static |
Creates the CSLA Data Binding Friendly default for the given type T.
Definition at line 278 of file Csla/PropertyInfo.cs.
System.Reflection.PropertyInfo Csla.PropertyInfo< T >.GetPropertyInfo | ( | ) |
Gets the System.Reflection.PropertyInfo object representing the property.
Implements Csla.Core.IPropertyInfo.
|
protectedvirtual |
Create and return a new IFieldData object to store an instance value for this property.
name | Property name. |
Implements Csla.Core.IPropertyInfo.
Definition at line 221 of file Csla/PropertyInfo.cs.
|
get |
Gets the default initial value for the property.
This value is used to initialize the property's value, and is returned from a property get if the user is not authorized to read the property.
Definition at line 198 of file Csla/PropertyInfo.cs.
|
get |
Gets the friendly display name for the property.
If no friendly name was provided, the property name itself is returned as a result.
Definition at line 159 of file Csla/PropertyInfo.cs.
|
get |
Gets a value indicating whether this property references a child in the object graph.
Definition at line 256 of file Csla/PropertyInfo.cs.
|
get |
Gets the property name value.
Definition at line 137 of file Csla/PropertyInfo.cs.
|
get |
Gets the relationship between the declaring object and the object reference in the property.
Definition at line 234 of file Csla/PropertyInfo.cs.
|
get |
Gets the type of the property.
Definition at line 142 of file Csla/PropertyInfo.cs.