Show / Hide Table of Contents

Class ListItemBase<TListSelect>

ListItemBase is the base-class of all listitems.

Inheritance
Object
ListItemBase<TListSelect>
ActivityListItem
ContactListItem
DocumentListItem
PersonListItem
ProjectEventListItem
ProjectListItem
ProjectMemberListItem
RelationsListItem
SaleListItem
UserListItem
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
public abstract class ListItemBase<TListSelect> : Object where TListSelect : SqlCommand
Type Parameters
Name Description
TListSelect

Constructors

ListItemBase()

Default constructor.

Declaration
public ListItemBase()

Properties

FieldProperties

Get individual rights for the fields of the item.

Declaration
public virtual FieldPropertyDictionary FieldProperties { get; protected set; }
Property Value
Type Description
FieldPropertyDictionary

TableRight

Get the rights for the item.

Declaration
public virtual TableRight TableRight { get; protected set; }
Property Value
Type Description
TableRight

Methods

AddFieldProperty(String, FieldProperty)

ListItemBase is the base-class of all listitems.

Declaration
protected void AddFieldProperty(string fieldName, FieldProperty fieldProperty)
Parameters
Type Name Description
String fieldName
FieldProperty fieldProperty

AssignFromReader(SoDataReader, FieldInfo, ref Int32, String)

ListItemBase is the base-class of all listitems.

Declaration
protected bool AssignFromReader(SoDataReader reader, FieldInfo field, ref int value, string fieldName)
Parameters
Type Name Description
SoDataReader reader
FieldInfo field
Int32 value
String fieldName
Returns
Type Description
Boolean

AssignFromReader(SoDataReader, FieldInfo, ref String, String)

ListItemBase is the base-class of all listitems.

Declaration
protected bool AssignFromReader(SoDataReader reader, FieldInfo field, ref string value, string fieldName)
Parameters
Type Name Description
SoDataReader reader
FieldInfo field
String value
String fieldName
Returns
Type Description
Boolean

AssignFromReader<T>(SoDataReader, FieldInfo, ref T, String)

ListItemBase is the base-class of all listitems.

Declaration
protected bool AssignFromReader<T>(SoDataReader reader, FieldInfo field, ref T value, string fieldName)
Parameters
Type Name Description
SoDataReader reader
FieldInfo field
T value
String fieldName
Returns
Type Description
Boolean
Type Parameters
Name Description
T

HandleFieldRights(String, SentryCollection, FieldInfo, Type, EFieldRight, Boolean)

ListItemBase is the base-class of all listitems.

Declaration
protected bool HandleFieldRights(string fieldName, SentryCollection sentries, FieldInfo field, Type fieldType, EFieldRight requestedRight, bool populateCarrier)
Parameters
Type Name Description
String fieldName
SentryCollection sentries
FieldInfo field
Type fieldType
EFieldRight requestedRight
Boolean populateCarrier
Returns
Type Description
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)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top