示例#1
0
        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;
        }
示例#2
0
 public void Set(Type from, Type to, LambdaInfo expr)
 {
     Set(_expressions, from, to, expr);
 }
示例#3
0
 public void Set(Type from, Type to, LambdaInfo expr)
 {
     Set(_expressions, new DbDataType(from), new DbDataType(to), expr);
 }