public override object GetDefaultValue(SysDefaultConstraint columnConstraint) { var hexString = TrimStart(columnConstraint.Definition.Trim('(', ')').TrimStart(), "0x"); try { return(StringToByteArray(hexString)); } catch { return(null); } }
public override object GetDefaultValue(SysDefaultConstraint columnConstraint) { return(short.TryParse(columnConstraint.Definition.Trim('(', ')'), out var parsedResult) ? parsedResult : (object)null); }
public override object GetDefaultValue(SysDefaultConstraint columnConstraint) { var bracketLessString = columnConstraint.Definition.Trim('(', ')'); return(bracketLessString == "0" ? false : (bracketLessString == "1" ? true : (object)null)); }
public override object GetDefaultValue(SysDefaultConstraint columnConstraint) { var bracketLessString = columnConstraint.Definition.Trim('(', ')'); return(bracketLessString.StartsWith("'") ? bracketLessString.Trim('\'') : null); }
public override object GetDefaultValue(SysDefaultConstraint columnConstraint) { return(null); }
public abstract object GetDefaultValue(SysDefaultConstraint columnConstraint);