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

More...

Inheritance diagram for Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >:
Ext.Net.AbstractAssociation.Builder< THasOneAssociation, TBuilder >

Public Member Functions

 Builder (THasOneAssociation component)
 
virtual TBuilder ForeignKey (string foreignKey)
 The name of the foreign key on the owner model that links it to the associated model. Defaults to the lowercased name of the associated model plus "_id" More...
 
virtual TBuilder GetterName (string getterName)
 The name of the getter function that will be added to the local model's prototype. Defaults to 'get' + the name of the foreign model, e.g. getAddress More...
 
virtual TBuilder SetterName (string setterName)
 The name of the setter function that will be added to the local model's prototype. Defaults to 'set' + the name of the foreign model, e.g. setAddress More...
 
 Builder ()
 
 Builder (HasOneAssociation component)
 
 Builder (HasOneAssociation.Config config)
 
- Public Member Functions inherited from Ext.Net.AbstractAssociation.Builder< THasOneAssociation, 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 (HasOneAssociation component)
 

Detailed Description

Type Constraints
THasOneAssociation :HasOneAssociation 
TBuilder :Builder 
TBuilder :THasOneAssociation 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.Builder ( THasOneAssociation  component)
inline

◆ Builder() [2/4]

Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.Builder ( HasOneAssociation  component)
inline

◆ Builder() [4/4]

Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.Builder ( HasOneAssociation.Config  config)
inline

Member Function Documentation

◆ ForeignKey()

virtual TBuilder Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.ForeignKey ( string  foreignKey)
inlinevirtual

The name of the foreign key on the owner model that links it to the associated model. Defaults to the lowercased name of the associated model plus "_id"

◆ GetterName()

virtual TBuilder Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.GetterName ( string  getterName)
inlinevirtual

The name of the getter function that will be added to the local model's prototype. Defaults to 'get' + the name of the foreign model, e.g. getAddress

◆ operator Builder()

static implicit Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.operator Builder ( HasOneAssociation  component)
inlinestatic

◆ SetterName()

virtual TBuilder Ext.Net.HasOneAssociation.Builder< THasOneAssociation, TBuilder >.SetterName ( string  setterName)
inlinevirtual

The name of the setter function that will be added to the local model's prototype. Defaults to 'set' + the name of the foreign model, e.g. setAddress


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