You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
590 B
20 lines
590 B
1 month ago
|
using System;
|
||
|
using System.Data;
|
||
|
using System.Threading;
|
||
|
|
||
|
namespace Dapper
|
||
|
{
|
||
|
partial class SqlMapper
|
||
|
{
|
||
|
class CacheInfo
|
||
|
{
|
||
|
public DeserializerState Deserializer { get; set; }
|
||
|
public Func<IDataReader, object>[] OtherDeserializers { get; set; }
|
||
|
public Action<IDbCommand, object> ParamReader { get; set; }
|
||
|
private int hitCount;
|
||
|
public int GetHitCount() { return Interlocked.CompareExchange(ref hitCount, 0, 0); }
|
||
|
public void RecordHit() { Interlocked.Increment(ref hitCount); }
|
||
|
}
|
||
|
}
|
||
|
}
|