Click or drag to resize

PFObject Class

Represents an object used as a POCO for a object persisted in Packflow.
Inheritance Hierarchy

Namespace:  Packflow.Core.Poco
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
[DataContractAttribute]
public abstract class PFObject

The PFObject type exposes the following members.

Constructors
  NameDescription
Protected methodPFObject
Initializes a new instance of a derived class of PFObject.
Top
Properties
  NameDescription
Public propertyCreatedAt
Gets the date of creation of this object in the database.
Public propertyCreatedBy
Gets the user who created this object in the database.
Public propertyGuid
Gets the GUID identifying this object.
Public propertyId
Gets the id identifying this object.
Public propertyIgnoreVersionConflicts
Gets or sets a value indicating whether version conflicts should be ignored when updating a packflow object from this poco. Note : this value is not persisted nor serialiazed. Therefore this only affects the current instance.
Public propertyObjectReference
Gets the reference to the corresponding object persisted in Packflow.
Public propertyUpdatedAt
Gets the date of the last update of this object.
Public propertyUpdatedBy
Gets the user who last updated this object in the database.
Public propertyVersionNumber
Gets the version number of this object in database. Incremented after each save.
Top
Methods
  NameDescription
Protected methodGetValueBinary
Gets a value in byte[] format. Will return null if the value does not exist or is null.
Protected methodGetValueBoolean
Gets a value in bool format. Will return false if the value does not exist or is null.
Protected methodGetValueDateTimeOffset
Gets a value in DateTimeOffset format. Will return DateTimeOffset.MinValue if the value does not exist or is null.
Protected methodGetValueDecimal
Gets a value in decimal format. Will return 0 if the value does not exist or is null.
Protected methodGetValueDouble
Gets a value in double format. Will return 0 if the value does not exist or is null.
Protected methodGetValueEnumT
Gets a value and converts it to an enum value. Will return default(T) if the value does not exist or is null.
Protected methodGetValueFiles
Gets a file value. Will return null if the value does not exist or is null.
Protected methodGetValueFloat
Gets a value in float format. Will return 0 if the value does not exist or is null.
Protected methodGetValueGuid
Gets a value in Guid format. Will return Guid.Empty if the value does not exist or is null.
Protected methodGetValueInt
Gets a value in int format. Will return 0 if the value does not exist or is null.
Protected methodGetValueItems
Gets an item value. Will return null if the value does not exist or is null.
Protected methodGetValueLong
Gets a value in long format. Will return 0 if the value does not exist or is null.
Protected methodGetValueNullableBoolean
Gets a value in bool format. Will return null if the value does not exist or is null.
Protected methodGetValueNullableDateTimeOffset
Gets a value in DateTimeOffset format. Will return null if the value does not exist, is null, or is equal to DateTimeOffset.MinValue.
Protected methodGetValueNullableDecimal
Gets a value in decimal format. Will return null if the value does not exist or is null.
Protected methodGetValueObjectT
Gets a value of a given type. Will return null if the value does not exist or is null.
Protected methodGetValueText
Gets a value as text. Will return String.Empty if the value does not exist or is null.
Protected methodGetValueUrl
Gets an url value. Will return null if the value does not exist or is null.
Protected methodGetValueUsers
Gets a user value. Will return null if the value does not exist or is null.
Protected methodSetValue
Sets a value in the data dictionary for a given key.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also