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

More...

Inheritance diagram for Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >:
Ext.Net.BaseItem.Builder< TFieldReference, TBuilder >

Public Member Functions

 Builder (TFieldReference component)
 
virtual TBuilder Type (string type)
 The type which this field references. This is the value set by the string form of reference. If the referenced entity has an ownership relationship this field should be omitted and reference.parent or reference.child should be specified instead. More...
 
virtual TBuilder Association (string association)
 The name of the association. By default, the name of the assocation is the capitalized inverse plus "By" plus the capitalized role. More...
 
virtual TBuilder Child (string child)
 Set this property instead of reference.type to indicate that the referenced entity is an owned child of this entity. That is, the reference entity should be deleted when this entity is deleted. More...
 
virtual TBuilder Parent (string parent)
 Set this property instead of reference.type to indicate that the referenced entity is the owning parent of this entity. That is, this entity should be deleted when the reference entity is deleted. More...
 
virtual TBuilder Role (string role)
 The name of the role played by the referenced entity. By default, this is the field name (minus its "Id" suffix if present). More...
 
virtual TBuilder Inverse (string inverse)
 The name of the inverse role (of this entity with respect to the reference entity). By default, this is the pluralized name of this entity, unless this reference is unique, in which case the default name is the singularized name of this entity. More...
 
 Builder ()
 
 Builder (FieldReference component)
 
 Builder (FieldReference.Config config)
 
- Public Member Functions inherited from Ext.Net.BaseItem.Builder< TFieldReference, TBuilder >
 Builder (TItem item)
 
virtual TItem ToComponent ()
 Get the instance of the underlying StateManagedItem. More...
 
virtual TBuilder CustomConfig (Action< ConfigItemCollection > action)
 Collection of custom js config More...
 

Static Public Member Functions

static implicit operator Builder (FieldReference component)
 
- Static Public Member Functions inherited from Ext.Net.BaseItem.Builder< TFieldReference, TBuilder >
static implicit operator TItem (BaseItem.Builder< TItem, TBuilder > builder)
 Implicit conversion of a TItem object directly into a TComponent. More...
 

Additional Inherited Members

- Protected Attributes inherited from Ext.Net.BaseItem.Builder< TFieldReference, TBuilder >
TItem item
 

Detailed Description

Type Constraints
TFieldReference :FieldReference 
TBuilder :Builder 
TBuilder :TFieldReference 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Builder ( TFieldReference  component)
inline

◆ Builder() [2/4]

Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Builder ( FieldReference  component)
inline

◆ Builder() [4/4]

Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Builder ( FieldReference.Config  config)
inline

Member Function Documentation

◆ Association()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Association ( string  association)
inlinevirtual

The name of the association. By default, the name of the assocation is the capitalized inverse plus "By" plus the capitalized role.

◆ Child()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Child ( string  child)
inlinevirtual

Set this property instead of reference.type to indicate that the referenced entity is an owned child of this entity. That is, the reference entity should be deleted when this entity is deleted.

◆ Inverse()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Inverse ( string  inverse)
inlinevirtual

The name of the inverse role (of this entity with respect to the reference entity). By default, this is the pluralized name of this entity, unless this reference is unique, in which case the default name is the singularized name of this entity.

◆ operator Builder()

static implicit Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.operator Builder ( FieldReference  component)
inlinestatic

◆ Parent()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Parent ( string  parent)
inlinevirtual

Set this property instead of reference.type to indicate that the referenced entity is the owning parent of this entity. That is, this entity should be deleted when the reference entity is deleted.

◆ Role()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Role ( string  role)
inlinevirtual

The name of the role played by the referenced entity. By default, this is the field name (minus its "Id" suffix if present).

◆ Type()

virtual TBuilder Ext.Net.FieldReference.Builder< TFieldReference, TBuilder >.Type ( string  type)
inlinevirtual

The type which this field references. This is the value set by the string form of reference. If the referenced entity has an ownership relationship this field should be omitted and reference.parent or reference.child should be specified instead.


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