Ext.NET
5.3.0
.NET Component Framework for Enterprise Level Apps
|
Associations enable you to express relationships between different Models. Let's say we're writing an ecommerce system where Users can make Orders - there's a relationship between these Models that we can express like this: More...
Classes | |
class | Builder |
class | Config |
Public Member Functions | |
virtual void | Validate () |
Public Member Functions inherited from Ext.Net.BaseItem | |
virtual bool | HasExplicitValue (string name) |
void | EnsureDataBind () |
virtual void | Call (string name) |
virtual void | Call (string name, params object[] args) |
virtual void | AddScript (string script) |
virtual void | AddScript (string script, params object[] args) |
virtual bool | IsEmptyObject () |
T | Apply< T > (IApply config) |
BaseItem | Apply (object config) |
virtual void | LoadViewState (object state) |
virtual object | SaveViewState () |
virtual void | TrackViewState () |
void | SetDirty () |
virtual void | DataBind () |
virtual IControlBuilder | ToNativeBuilder () |
Properties | |
override string | InstanceOf [get] |
abstract string | Type [get] |
Alias More... | |
virtual string | AssociationKey [get, set] |
The name of the property in the data to read the association from. Defaults to the name of the associated model. More... | |
virtual string | PrimaryKey [get, set] |
The name of the primary key on the associated model. In general this will be the Ext.data.Model.idProperty of the Model. Defaults to 'id' More... | |
virtual string | Model [get, set] |
The string name of the model that is being associated with. Required More... | |
virtual ReaderCollection?? | Reader [get] |
A special reader to read associated data More... | |
string | PropertyName [get] |
override ConfigOptionsCollection | ConfigOptions [get] |
Properties inherited from Ext.Net.BaseItem | |
virtual string | InstanceOf [get] |
ItemState | State [get] |
virtual DefaultValueMode | DefaultValueMode [get, set] |
virtual bool | DesignMode [get] |
bool | AutoDataBind [get, set] |
ResourceManager | ResourceManager [get] |
virtual Control | Owner [get, set] |
The Owner Control for this Listener. More... | |
virtual bool | IsDefault [get] |
Does this object currently represent it's default state. More... | |
bool | IsTrackingViewState [get] |
EventHandlerList | Events [get] |
EventHandler | DataBinding |
Control?? | BindingContainer [get] |
virtual ConfigItemCollection?? | CustomConfig [get] |
Collection of custom js config More... | |
virtual ConfigOptionsCollection | ConfigOptions [get] |
virtual ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
System.Web.Mvc.HtmlHelper?? | HtmlHelper [get, set] |
Properties inherited from Ext.Net.IXObject | |
ConfigOptionsCollection | ConfigOptions [get] |
ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
DefaultValueMode | DefaultValueMode [get, set] |
Properties inherited from Ext.Net.IAlias | |
string | PropertyName [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Ext.Net.BaseItem | |
BaseItem (Control owner) | |
BaseItem () | |
virtual void | OwnerUpdate (Control owner) |
virtual void | OnDataBinding (EventArgs e) |
Associations enable you to express relationships between different Models. Let's say we're writing an ecommerce system where Users can make Orders - there's a relationship between these Models that we can express like this:
Ext.regModel('User', { fields: ['id', 'name', 'email'],
hasMany: {model: 'Order', name: 'orders'} });
Ext.regModel('Order', { fields: ['id', 'user_id', 'status', 'price'],
belongsTo: 'User' }); We've set up two models - User and Order - and told them about each other. You can set up as many associations on each Model as you need using the two default types - hasMany and belongsTo. There's much more detail on the usage of each of those inside their documentation pages.
|
inlinevirtual |
|
getset |
The name of the property in the data to read the association from. Defaults to the name of the associated model.
|
get |
|
get |
|
getset |
The string name of the model that is being associated with. Required
|
getset |
The name of the primary key on the associated model. In general this will be the Ext.data.Model.idProperty of the Model. Defaults to 'id'
|
get |
|
get |
A special reader to read associated data
|
getprotected |
Alias