Esempio n. 1
0
        internal Func <IDataReader, object> GetHandle(string sql, IDataReader reader, Type mType)
        {
            var key = GetHandleKey(sql.GetHashCode(), GetColumnHash(reader), mType.FullName);

            return(((Row)ModelRowCache.GetOrAdd(key, k => IL.Row(reader, mType))).Handle);
        }
Esempio n. 2
0
        internal Func <IDataReader, M> GetHandle <M>(string sql, IDataReader reader)
        {
            var key = GetHandleKey(sql.GetHashCode(), GetColumnHash(reader), typeof(M).FullName);

            return(((Row <M>)ModelRowCache.GetOrAdd(key, k => IL <M> .Row(reader))).Handle);
        }