Class ListItemBase<TListSelect>
ListItemBase is the base-class of all listitems.
Inheritance
System.Object
ListItemBase<TListSelect>
Assembly: SoDataBase.dll
Syntax
public abstract class ListItemBase<TListSelect> : Object where TListSelect : SqlCommand
Type Parameters
Name |
Description |
TListSelect |
|
Constructors
ListItemBase()
Declaration
Properties
FieldProperties
Get individual rights for the fields of the item.
Declaration
public virtual FieldPropertyDictionary FieldProperties { get; protected set; }
Property Value
TableRight
Get the rights for the item.
Declaration
public virtual TableRight TableRight { get; protected set; }
Property Value
Methods
AddFieldProperty(String, FieldProperty)
Declaration
protected void AddFieldProperty(string fieldName, FieldProperty fieldProperty)
Parameters
Type |
Name |
Description |
System.String |
fieldName |
|
FieldProperty |
fieldProperty |
|
AssignFromReader(SoDataReader, FieldInfo, ref Int32, String)
Declaration
protected bool AssignFromReader(SoDataReader reader, FieldInfo field, ref int value, string fieldName)
Parameters
Returns
Type |
Description |
System.Boolean |
|
AssignFromReader(SoDataReader, FieldInfo, ref String, String)
Declaration
protected bool AssignFromReader(SoDataReader reader, FieldInfo field, ref string value, string fieldName)
Parameters
Returns
Type |
Description |
System.Boolean |
|
AssignFromReader<T>(SoDataReader, FieldInfo, ref T, String)
Declaration
protected bool AssignFromReader<T>(SoDataReader reader, FieldInfo field, ref T value, string fieldName)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
HandleFieldRights(String, SentryCollection, FieldInfo, Type, EFieldRight, Boolean)
Declaration
protected bool HandleFieldRights(string fieldName, SentryCollection sentries, FieldInfo field, Type fieldType, EFieldRight requestedRight, bool populateCarrier)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Initialize()
Initializes all class-members.
Declaration
protected abstract void Initialize()
Load(TListSelect, SoDataReader)
Responsible for reading the current row in the data reader and insert the value in the right part ob the object.
Declaration
protected abstract void Load(TListSelect query, SoDataReader reader)
Parameters
Type |
Name |
Description |
TListSelect |
query |
|
SoDataReader |
reader |
The reader contains the items data.
|
Extension Methods
EnumUtil.MapEnums<From, To>(From)