Skip to content

DataUtils class

public class EasyData.DataUtils

Package: EasyData.Core (targets: netstandard2.0)

Assembly: EasyData.Core.dll

NameTypeDescription
DataUtils()void
NameTypeDescription
InternalDateFormatstringGets the internal date format (yyyy-MM-dd).
InternalTimeFormatstringGets the internal time format (HH:mm:ss).
NameTypeDescription
ComposeKey(string parent, string child)string
DateTimeToInternalFormat(DateTime dt, DataType dataType)stringConverts DateTime value to its string representation in internal format (yyyy-MM-dd).
DateTimeToUserFormat(DateTime dt, DataType dataType)stringConverts DateTime value to its string representation in current system format.
GetDataTypeBySystemType(Type systemType)DataTypeGets the type of the data type by system type.
GetDateTimeInternalFormat(DataType dataType, bool shortTime = False)stringGets the format used for internal textual representation of date/time values. EasyQuery uses “yyyy-MM-dd” format.
GetInternalFormatProvider()IFormatProviderGets the internal format provider. This provider defines the format used to store date/time and numeric values internally and it saved queries
InternalFormatToDateTime(string val, DataType dataType)DateTimeConvert string representation in internal format to DateTime value.
MakePlural(string name)stringChange single to plural
PrettifyName(string name)string