Table of Contents

Class ElementFieldList

Namespace
JJMasterData.Commons.Data.Entity.Models
Assembly
JJMasterData.Commons.dll

Table Field List

public class ElementFieldList : IList<ElementField>, ICollection<ElementField>, IEnumerable<ElementField>, IEnumerable
Inheritance
ElementFieldList
Implements
Inherited Members
Extension Methods

Remarks

2017-03-22 JJTeam

Constructors

ElementFieldList()

public ElementFieldList()

ElementFieldList(List<ElementField>)

public ElementFieldList(List<ElementField> fields)

Parameters

fields List<ElementField>

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

public ElementField this[int index] { get; set; }

Parameters

index int

Property Value

ElementField

this[string]

public ElementField this[string fieldName] { get; set; }

Parameters

fieldName string

Property Value

ElementField

Methods

Add(ElementField)

Add Field

public void Add(ElementField item)

Parameters

item ElementField

Object with field information

Add(string, string, FieldType, int, bool, FilterMode)

Add Field

public void Add(string name, string label, FieldType dataType, int size, bool required, FilterMode filterMode)

Parameters

name string

Column Name

label string

Description on the form

dataType FieldType

Data Type

size int

Field Size

required bool

Required Field

filterMode FilterMode

Filter Type

Add(string, string, FieldType, int, bool, FilterMode, FieldBehavior)

Add Field

public void Add(string name, string label, FieldType dataType, int size, bool required, FilterMode filterMode, FieldBehavior dataBehavior)

Parameters

name string

Column Name

label string

Description on the form

dataType FieldType

Data Type

size int

Field Size

required bool

Required field

filterMode FilterMode

Filter type

dataBehavior FieldBehavior

Specifies the behavior of the field.

AddPk(string, string, FieldType, int, bool, FilterMode)

Add primary key

public void AddPk(string name, string label, FieldType dataType, int size, bool autoNum, FilterMode filterMode)

Parameters

name string

Column Name

label string

Description on the form

dataType FieldType

Data Type

size int

Field Size

autoNum bool

Auto Numerical (Identity)

filterMode FilterMode

Filter type

AddRange(IEnumerable<ElementField>)

public void AddRange(IEnumerable<ElementField> fields)

Parameters

fields IEnumerable<ElementField>

Clear()

public void Clear()

Contains(ElementField)

public bool Contains(ElementField item)

Parameters

item ElementField

Returns

bool

ContainsKey(string)

public bool ContainsKey(string name)

Parameters

name string

Returns

bool

CopyTo(ElementField[], int)

public void CopyTo(ElementField[] array, int arrayIndex)

Parameters

array ElementField[]
arrayIndex int

DeepCopy()

public ElementFieldList DeepCopy()

Returns

ElementFieldList

FindAll(Predicate<ElementField>)

public List<ElementField> FindAll(Predicate<ElementField> predicate)

Parameters

predicate Predicate<ElementField>

Returns

List<ElementField>

GetAsList()

public List<ElementField> GetAsList()

Returns

List<ElementField>

GetEnumerator()

public IEnumerator<ElementField> GetEnumerator()

Returns

IEnumerator<ElementField>

IndexOf(ElementField)

public int IndexOf(ElementField item)

Parameters

item ElementField

Returns

int

Insert(int, ElementField)

public void Insert(int index, ElementField item)

Parameters

index int
item ElementField

Remove(ElementField)

public bool Remove(ElementField item)

Parameters

item ElementField

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int