Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >:
Ext.Net.AbstractAssociation.Builder< THasManyAssociation, TBuilder >

Public Member Functions

 Builder (THasManyAssociation component)
 
virtual TBuilder AutoLoad (bool autoLoad)
 True to automatically load the related store from a remote source when instantiated. Defaults to false. More...
 
virtual TBuilder FilterProperty (string filterProperty)
 Optionally overrides the default filter that is set up on the associated Store. If this is not set, a filter is automatically created which filters the association based on the configured foreignKey. See intro docs for more details. Defaults to undefined More...
 
virtual TBuilder ForeignKey (string foreignKey)
 The name of the foreign key on the associated model that links it to the owner model. Defaults to the lowercased name of the owner model plus "_id", e.g. an association with a where a model called Group hasMany Users would create 'group_id' as the foreign key. More...
 
virtual TBuilder Name (string name)
 The name of the function to create on the owner model to retrieve the child store. If not specified, the pluralized name of the child model is used. More...
 
virtual TBuilder StoreConfig (Action< Store > action)
 Optional configuration object that will be passed to the generated Store. Defaults to undefined. More...
 
 Builder ()
 
 Builder (HasManyAssociation component)
 
 Builder (HasManyAssociation.Config config)
 
- Public Member Functions inherited from Ext.Net.AbstractAssociation.Builder< THasManyAssociation, TBuilder >
 Builder (TAbstractAssociation component)
 
virtual TBuilder AssociationKey (string associationKey)
 The name of the property in the data to read the association from. Defaults to the name of the associated model. More...
 
virtual TBuilder PrimaryKey (string primaryKey)
 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 TBuilder Model (string model)
 The string name of the model that is being associated with. Required More...
 
virtual TBuilder Reader (Action< ReaderCollection > action)
 A special reader to read associated data More...
 

Static Public Member Functions

static implicit operator Builder (HasManyAssociation component)
 

Detailed Description

Type Constraints
THasManyAssociation :HasManyAssociation 
TBuilder :Builder 
TBuilder :THasManyAssociation 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.Builder ( THasManyAssociation  component)
inline

◆ Builder() [2/4]

Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.Builder ( HasManyAssociation  component)
inline

◆ Builder() [4/4]

Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.Builder ( HasManyAssociation.Config  config)
inline

Member Function Documentation

◆ AutoLoad()

virtual TBuilder Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.AutoLoad ( bool  autoLoad)
inlinevirtual

True to automatically load the related store from a remote source when instantiated. Defaults to false.

◆ FilterProperty()

virtual TBuilder Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.FilterProperty ( string  filterProperty)
inlinevirtual

Optionally overrides the default filter that is set up on the associated Store. If this is not set, a filter is automatically created which filters the association based on the configured foreignKey. See intro docs for more details. Defaults to undefined

◆ ForeignKey()

virtual TBuilder Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.ForeignKey ( string  foreignKey)
inlinevirtual

The name of the foreign key on the associated model that links it to the owner model. Defaults to the lowercased name of the owner model plus "_id", e.g. an association with a where a model called Group hasMany Users would create 'group_id' as the foreign key.

◆ Name()

virtual TBuilder Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.Name ( string  name)
inlinevirtual

The name of the function to create on the owner model to retrieve the child store. If not specified, the pluralized name of the child model is used.

◆ operator Builder()

static implicit Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.operator Builder ( HasManyAssociation  component)
inlinestatic

◆ StoreConfig()

virtual TBuilder Ext.Net.HasManyAssociation.Builder< THasManyAssociation, TBuilder >.StoreConfig ( Action< Store action)
inlinevirtual

Optional configuration object that will be passed to the generated Store. Defaults to undefined.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

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