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
IsReadOnly
public bool IsReadOnly { get; }
Property Value
this[int]
public ElementField this[int index] { get; set; }
Parameters
index
int
Property Value
this[string]
public ElementField this[string fieldName] { get; set; }
Parameters
fieldName
string
Property Value
Methods
Add(ElementField)
Add Field
public void Add(ElementField item)
Parameters
item
ElementFieldObject 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
stringColumn Name
label
stringDescription on the form
dataType
FieldTypeData Type
size
intField Size
required
boolRequired Field
filterMode
FilterModeFilter 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
stringColumn Name
label
stringDescription on the form
dataType
FieldTypeData Type
size
intField Size
required
boolRequired field
filterMode
FilterModeFilter type
dataBehavior
FieldBehaviorSpecifies 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
stringColumn Name
label
stringDescription on the form
dataType
FieldTypeData Type
size
intField Size
autoNum
boolAuto Numerical (Identity)
filterMode
FilterModeFilter 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
ContainsKey(string)
public bool ContainsKey(string name)
Parameters
name
string
Returns
CopyTo(ElementField[], int)
public void CopyTo(ElementField[] array, int arrayIndex)
Parameters
array
ElementField[]arrayIndex
int
DeepCopy()
public ElementFieldList DeepCopy()
Returns
FindAll(Predicate<ElementField>)
public List<ElementField> FindAll(Predicate<ElementField> predicate)
Parameters
predicate
Predicate<ElementField>
Returns
GetAsList()
public List<ElementField> GetAsList()
Returns
GetEnumerator()
public IEnumerator<ElementField> GetEnumerator()
Returns
IndexOf(ElementField)
public int IndexOf(ElementField item)
Parameters
item
ElementField
Returns
Insert(int, ElementField)
public void Insert(int index, ElementField item)
Parameters
index
intitem
ElementField
Remove(ElementField)
public bool Remove(ElementField item)
Parameters
item
ElementField
Returns
RemoveAt(int)
public void RemoveAt(int index)
Parameters
index
int