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); }
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); }