public DbDataType WithoutSystemType(DbDataType from) => new DbDataType(SystemType, from.DataType, from.DbType, from.Length, from.Precision, from.Scale);
public LambdaInfo?Get(DbDataType from, DbDataType to) { return(_expressions.TryGetValue(from, out var dic) && dic.TryGetValue(to, out var li) ? li : null); }
public void Set(DbDataType from, DbDataType to, LambdaInfo expr) { Set(_expressions, from, to, expr); }
static void Set(ConcurrentDictionary <DbDataType, ConcurrentDictionary <DbDataType, LambdaInfo> > expressions, DbDataType from, DbDataType to, LambdaInfo expr) { if (!expressions.TryGetValue(from, out var dic)) { expressions[from] = dic = new ConcurrentDictionary <DbDataType, LambdaInfo>(); } dic[to] = expr; }
public bool Equals(DbDataType other) { return(SystemType == other.SystemType && DataType == other.DataType && string.Equals(DbType, other.DbType) && Length == other.Length); }