Here are the examples of the csharp api class CodeSharp.EventSourcing.SqlMapper.GetColumnHash(System.Data.IDataReader) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: eventsourcing
Source File: SqlMapper.cs
Source File: SqlMapper.cs
public IEnumerable<T> Read<T>(bool buffered = true) #endif { if (reader == null) throw new ObjectDisposedException(GetType().FullName, "The reader has been disposed; this can happen after all data has been consumed"); if (consumed) throw new InvalidOperationException("Query results must be consumed in the correct order, and each result can only be consumed once"); var typedIdentity = identity.ForGrid(typeof(T), gridIndex); CacheInfo cache = GetCacheInfo(typedIdentity); var deserializer = cache.Deserializer; int hash = GetColumnHash(reader); if (deserializer.Func == null || deserializer.Hash != hash) { deserializer = new DeserializerState(hash, GetDeserializer(typeof(T), reader, 0, -1, false)); cache.Deserializer = deserializer; } consumed = true; var result = ReadDeferred<T>(gridIndex, deserializer.Func, typedIdentity); return buffered ? result.ToList() : result; }
0
2. Example
Project: eventsourcing
Source File: SqlMapper.cs
Source File: SqlMapper.cs
private static IEnumerable<T> QueryInternal<T>(this IDbConnection cnn, string sql, objec/n ..... /n //View Source file for more details /n }
0
3. Example
Project: eventsourcing
Source File: SqlMapper.cs
Source File: SqlMapper.cs
static IEnumerable<TReturn> MultiMapImpl<TFirst, TSecond, TThird, TFourth, TFifth, TReturn&/n ..... /n //View Source file for more details /n }