コード例 #1
0
        public TEntity Get(string id)
        {
            TEntity ent = null;

            using (var session = _factory.CreateSession())
            {
                ent = session.Load <TEntity>(id);
            }
            return(ent);
        }
コード例 #2
0
 protected void CreateSession()
 {
     _session = _factory.CreateSession();
     _session.Advanced.DocumentStore.Conventions.CustomizeJsonSerializer = s => s.Converters.Add(new ClaimJsonConverter());
 }