Click or drag to resize

SanteDBConvert Class

SanteDB conversion helper functions
Inheritance Hierarchy
SystemObject
  SanteDB.Core.Model.MapSanteDBConvert

Namespace:  SanteDB.Core.Model.Map
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public class SanteDBConvert

The SanteDBConvert type exposes the following members.

Constructors
  NameDescription
Public methodSanteDBConvert
Initializes a new instance of the SanteDBConvert class
Top
Methods
  NameDescription
Public methodStatic memberBooleanToInt
Boolean to int
Public methodStatic memberByteToGuid
Byte[] > GUID
Public methodStatic memberByteToNullGuid
Byte[] > GUID
Public methodStatic memberDateTimeOffsetToDateTime(DateTimeOffset)
DTO > DT
Public methodStatic memberDateTimeOffsetToDateTime(NullableDateTimeOffset)
DTO > DT
Public methodStatic memberDateTimeToDateTimeOffset(DateTime)
DT > DTO
Public methodStatic memberDateTimeToDateTimeOffset(NullableDateTime)
DT > DTO
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGuidToByte
Guid > Byte[]
Public methodStatic memberInt16ToDecimal
Convert Int16 to decimal
Public methodStatic memberInt16ToInt32
Convert int16 to 32
Public methodStatic memberInt32ToDecimal
Convert Int32 to decimal
Public methodStatic memberInt32ToInt16
Convert int16 to 32
Public methodStatic memberInt64ToDecimal
Convert Int64 to decimal
Public methodStatic memberInt64ToInt32
Convert 64-bit long to int
Public methodStatic memberIntToBoolean
Boolean to int
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNullGuidToByte
Guid > Byte[]
Public methodStatic memberParseDateTime
Parse a date time from an object
Public methodStatic memberParseDateTimeOffset
Parse a date time from an object
Public methodStatic memberStringToTimespan
String to timespan
Public methodStatic memberTimeSpanToString
Timespan converted to string
Public methodStatic memberToDateTime
Parse a date time into an object
Public methodStatic memberToDateTimeOffset
Parse a date time into an object
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also