public TEntity Get(string id) { TEntity ent = null; using (var session = _factory.CreateSession()) { ent = session.Load <TEntity>(id); } return(ent); }
protected void CreateSession() { _session = _factory.CreateSession(); _session.Advanced.DocumentStore.Conventions.CustomizeJsonSerializer = s => s.Converters.Add(new ClaimJsonConverter()); }