Show / Hide Table of Contents

Class AttachmentRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the attachment table.

Inheritance
Object
AttachmentRecordData
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class AttachmentRecordData : Object
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

AttachmentRecordData()

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the attachment table.

Declaration
public AttachmentRecordData()
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Fields

AttachmentId

The primary key (auto-incremented)

Declaration
public int AttachmentId
Field Value
Type Description
Int32
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

AttachmentLocationId

The id of the attachment_location this attachment is stored in

Declaration
public int AttachmentLocationId
Field Value
Type Description
Int32
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

AttSize

The size (in bytes) for the attachment.

Declaration
public int AttSize
Field Value
Type Description
Int32
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

AuthKey

The key used for authenticating access to this attachment.

Declaration
public string AuthKey
Field Value
Type Description
String
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Charset

The charset if this is a text attachment

Declaration
public string Charset
Field Value
Type Description
String
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ContentType

The content type for the attachment (e.g. 'applaction/octet-stream' or 'application/vnd.openxmlformats-officedocument.wordprocessingml.document').

Declaration
public string ContentType
Field Value
Type Description
String
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DbiAgentId

Integration agent (eJournal)

Declaration
public int DbiAgentId
Field Value
Type Description
Int32
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DbiKey

The primary key for the integrated entry in the external datasource.

Declaration
public string DbiKey
Field Value
Type Description
String
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DbiLastModified

When the entry was last modified.

Declaration
public DateTime DbiLastModified
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DbiLastSyncronized

Last external syncronization.

Declaration
public DateTime DbiLastSyncronized
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Name

The filename for the attachment.

Declaration
public string Name
Field Value
Type Description
String
Remarks

Please use this class instead of a full AttachmentRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AttachmentTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
AttachmentRecordDataExtensions.ToInsert(AttachmentRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top