/// <summary> /// Gets an entity from a partitioned table in the db by its ID and partition key timestamp. /// </summary> /// <param name="id"></param> /// <param name="timestamp"></param> /// <returns></returns> public virtual ENTITY Get(object id, object partitionKey) { return(DataMapper.Get <ENTITY>(SessionFactory.GetCurrentSession(SessionKey), id, partitionKey)); }
/// <summary> /// Stronly typed method to get an entity by Id. This will load the entity from the database. /// </summary> /// <typeparam name="ENTITY"></typeparam> /// <param name="id"></param> /// <returns></returns> public virtual ENTITY Get(object id, bool forUpdate = false) { return(DataMapper.Get <ENTITY>(SessionFactory.GetCurrentSession(SessionKey), id, forUpdate)); }