CommonProviderDefaultExpressions
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Provides common provider-specific default expressions for database columns. These functions generate appropriate default values based on the database provider type.
static public
Contents
Methods (4) | Properties (7)
Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
TrueValue
Gets a function that returns the appropriate boolean true value for each provider. PostgreSQL uses "true", while other providers use "1".
Type: Func<DbProviderType, string>
FalseValue
Gets a function that returns the appropriate boolean false value for each provider. PostgreSQL uses "false", while other providers use "0".
Type: Func<DbProviderType, string>
CurrentTimestamp
Gets a function that returns the appropriate current timestamp expression for each provider.
Type: Func<DbProviderType, string>
CurrentUtcTimestamp
Gets a function that returns the appropriate current UTC timestamp expression for each provider.
Type: Func<DbProviderType, string>
NewGuid
Gets a function that returns the appropriate new GUID generation expression for each provider.
Type: Func<DbProviderType, string>
Zero
Gets a function that returns zero value appropriate for numeric columns in each provider.
Type: Func<DbProviderType, string>
EmptyString
Gets a function that returns empty string value appropriate for text columns in each provider.
Type: Func<DbProviderType, string>