Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.AbstractAssociation Class Reference

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...

Inheritance diagram for Ext.Net.AbstractAssociation:
Ext.Net.BaseItem Ext.Net.IAlias Ext.Net.IXObject Ext.Net.IBase Ext.Net.BelongsToAssociation Ext.Net.HasManyAssociation Ext.Net.HasOneAssociation

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 ()
 
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)
 

Detailed Description

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.

Member Function Documentation

◆ Validate()

virtual void Ext.Net.AbstractAssociation.Validate ( )
inlinevirtual

Property Documentation

◆ AssociationKey

virtual string Ext.Net.AbstractAssociation.AssociationKey
getset

The name of the property in the data to read the association from. Defaults to the name of the associated model.

◆ ConfigOptions

override ConfigOptionsCollection Ext.Net.AbstractAssociation.ConfigOptions
get

◆ InstanceOf

override string Ext.Net.AbstractAssociation.InstanceOf
get

◆ Model

virtual string Ext.Net.AbstractAssociation.Model
getset

The string name of the model that is being associated with. Required

◆ PrimaryKey

virtual string Ext.Net.AbstractAssociation.PrimaryKey
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'

◆ PropertyName

string Ext.Net.AbstractAssociation.PropertyName
get

◆ Reader

virtual ReaderCollection?? Ext.Net.AbstractAssociation.Reader
get

A special reader to read associated data

◆ Type

abstract string Ext.Net.AbstractAssociation.Type
getprotected

Alias


The documentation for this class was generated from the following files: