Skip to content

Instantly share code, notes, and snippets.

@alonsorobles
Created March 21, 2012 21:31
Show Gist options
  • Select an option

  • Save alonsorobles/2153059 to your computer and use it in GitHub Desktop.

Select an option

Save alonsorobles/2153059 to your computer and use it in GitHub Desktop.
IDocumentSession from RavenDB v1.0.701
namespace Raven.Client
{
public interface IDocumentSession : IDisposable
{
ISyncAdvancedSessionOperation Advanced { get; }
void Delete<T>(T entity);
T Load<T>(string id);
T[] Load<T>(params string[] ids);
T[] Load<T>(IEnumerable<string> ids);
T Load<T>(ValueType id);
IRavenQueryable<T> Query<T>(string indexName);
IRavenQueryable<T> Query<T>();
IRavenQueryable<T> Query<T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new();
ILoaderWithInclude<object> Include(string path);
ILoaderWithInclude<T> Include<T>(Expression<Func<T, object>> path);
void SaveChanges();
void Store(object entity, Guid etag);
void Store(object entity, Guid etag, string id);
void Store(object entity);
void Store(object entity, string id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment