Click or drag to resize

ExtensionMethods Class

Reflection tools
Inheritance Hierarchy
SystemObject
  SanteDB.Core.ModelExtensionMethods

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

The ExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAggregate
Create aggregation functions
Public methodStatic memberBase64UrlEncode
Convert to base 64
Public methodStatic memberConvertTReturn
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.
Public methodStatic memberCopyObjectDataTObject(TObject, TObject)
Copy object data from one object instance to another
Public methodStatic memberCopyObjectDataTObject(TObject, TObject, Boolean, Boolean)
Update property data if required
Public methodStatic memberGetAllTypes
Get all types
Public methodStatic memberGetFullName
Gets the full name of the user entity.
Public methodStatic memberGetGenericMethod
Get generic method
Public methodStatic memberGetMember
Get member
Public methodStatic memberGetQueryName
Get the serialization name
Public methodStatic memberGetQueryProperty
Get a property based on XML property and/or serialization redirect and/or query parameter
Public methodStatic memberGetSerializationName(PropertyInfo)
Get the serialization name
Public methodStatic memberGetSerializationName(Type)
Get the serialization type name
Public methodStatic memberGetSerializationRedirectProperty
Gets the serialization runtime property
Public methodStatic memberHashCode
Compute a basic hash string
Public methodStatic memberHasProperty
Determines whether the specified property name has property.
Public methodStatic memberImplements
Determine if me implements all of interfaces
Public methodStatic memberIsActive(Expression)
Create a version filter
Public methodStatic memberIsActive(Expression, Object)
Create a version filter
Public methodStatic memberIsEnumerable
True if enumerable
Public methodStatic memberLatestVersionOnlyT
Gets the latest version of the versioned entity data instance from a given list.
Public methodStatic memberLoadCollectionTReturn(IIdentifiedEntity, String, Boolean)
Delay load property
Public methodStatic memberLoadCollectionTSource, TReturn(TSource, ExpressionFuncTSource, IEnumerableTReturn, Boolean)
Load collection of TReturn from TSource
Public methodStatic memberLoadProperty(IIdentifiedEntity, String, Boolean)
Delay load property
Public methodStatic memberLoadPropertyTReturn(IIdentifiedEntity, String, Boolean)
Delay load property
Public methodStatic memberLoadPropertyTSource, TReturn(TSource, ExpressionFuncTSource, TReturn, Boolean)
Load collection of TReturn from TSource
Public methodStatic memberParseBase64UrlEncode
Parse base 64 encode
Public methodStatic memberParseHexString
Convert a hex string to byte array
Public methodStatic memberSemanticCopyTObject
Update property data with data from fromEntities if the property is not semantically equal
Public methodStatic memberSemanticCopyFieldsTObject
Update property data with data from fromEntities if and only if the source property is null in the original toEntity
Public methodStatic memberSemanticCopyNullFieldsTObject
Update property data with data from fromEntities if the property is not semantically equal - only if the field on the inbound toEntity is null
Public methodStatic memberSemanticEqualsTEntity
Determine semantic equality of each item in me and other
Public methodStatic memberSort
Create sort expression.
Public methodStatic memberStripAssociatedItemSourcesTObject
Strips all version information from the specified object.
Public methodStatic memberStripGeneric
Strips list
Public methodStatic memberStripNullable
Strips any nullable typing.
Public methodStatic memberToHexString
Convert a hex string to byte array
Public methodStatic memberValue
Get postal code
Public methodStatic memberWasLoaded(IIdentifiedEntity, String)
Returns true if the property has been loaded
Public methodStatic memberWasLoadedTSource, TReturn(TSource, ExpressionFuncTSource, TReturn)
Returns true if the property is loaded
Top
See Also