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: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public class SanteDBConvert

The SanteDBConvert type exposes the following members.

Constructors
 NameDescription
Public methodSanteDBConvertInitializes a new instance of the SanteDBConvert class
Top
Methods
 NameDescription
Public methodStatic memberBooleanToInt Boolean to int
Public methodStatic memberBooleanToLong 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 methodStatic memberDecimalToInt16 Decimal to Int16
Public methodStatic memberDecimalToInt32 Decimal to Int32
Public methodStatic memberDecimalToInt64 Decimal to Int64
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets 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
Public methodStatic memberLongToBoolean Boolean to int
Protected methodMemberwiseCloneCreates 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 memberStringToByteArray Convert string to byte array
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 methodToStringReturns 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 MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also