rhino-commons

Any Rhino Commons Getting Started Tutorials?

There used to be a great one at this blog: http://www.hanneyetc.co.uk/ but it is offline now. ...

RhinoCommons UnitOfWork Question with ASP.Net MVC

I'm playing around with RhinoCommons and NHibernate and I had a question about the UnitOfWork pattern. Sorry if this is a n00b question. Should the UnitOfWork be started at the very highest level (ie the controller)? Or say in the service module that the controller is calling down into? ...

Rhino.Commons + Fluent NHibernate

Hello, Is there a way to use Rhino.Commons with Fluent Nhibernate, (in particular AutoMapping)? Many thanks fromano ...

Is it possible to use Rhino.Commons.HttpModules.UnitOfWorkApplication in ASP.NET 3.5 (not MVC)?

I tried to find tutorials/articles on using UnitOfWorkApplication in ASP.NET (not MVC). But all information I can find is about how to use it in ASP.NET MVC. Does it mean that it is not possible to use Rhino.Commons.HttpModules.UnitOfWorkApplication in our old webform applications? I run into the problem that I am using repository inh...

Nesting transaction scopes for integration tests using Rhino Commons UnitOfWork

I'm trying to set up a integration test class that wraps each test in a transaction. This way I can rollback the transaction after each test instead of resetting the DB before each test. I also want to be able to use transactions in the integration tests themselves. I am using NHibernate and the Rhino Commons UnitOfWork for the the pr...

Rhino UnitOfWorkApplication + Castle Automatic Transaction Management application does not flush automatically on request end

I'm building ASP.Net MVC aplication based on UnitOfWorkApplication and I'd like to use Castle ATM facility. At the moment I've problem with flushing the session on request end. My service class (which is called in my controller action method) looks like this: [Transactional] public class UserAdminService : IUserAdminService { [Transac...

How do you mock UnitOfWork from Rhino.Commons?

My application is using Rhino.Commons - NHRepository and UnitOfWork. I like the With.Transaction() syntax for transactions and have been using it for some time. But I ran into a problem - how do I mock a UnitOfWork for testing? Especially this is causing trouble for me: With.Transaction(() => Repositories.TwinfieldSpooler.Update(spool...

Rhino.Commons and it won't compile

I get this very strange error message when trying to use Rhino.Commons with my asp.net mvc application. Error 3 'Rhino.Commons.Repository<Web.Models.Poll>.FindAll()' is not supported by the language C:\frank\dev\SampleApplication\Web\Models\Repositories\IPollRepository.cs 15 20 Web Someone got any experience with this error? ...

Rhino Commons and Rhino Mocks Reference Documents?

Ok, is it just me, or does there seem to be a lack of (easy to find) reference documentation for Rhino Commons and Rhino Mocks? My coworkers have started using Rhino Mocks and Rhino Commons (particularly the NHibernate stuff), and I found a few tutorial-ish examples, which were good. But when I see them making use of a class in their c...

Rhino Commons UnitOfWork and ASP.NET MVC Controller seem to be caching parameters

I am using Rhino Commons UnitOfWork in my controller methods. The first request retrieves the data and displays it correctly. My problem is when I change the parameters in the URL they are not passed to the controller. The values from the previous request are used. My controller method is listed below: public ActionResult List(i...

rhino.commons unit of work

Hi i'm trying to get multi tenancy working in my app - using nhibernate integration facility from castle and i think that the funky combination of using the nh facility combined with fluent is making the task of configuring more than one session factory a pain. i'm thinking about swapping it out to use the rhino.commons UoW implementat...

Rhino Security - Configure multiple users

Hello, I am using Rhino Security and everything works fine when I configure the security settings as follows: Security.Configure<User>(cfg, SecurityTableStructure.Prefix); However, this depends on having a single User type that implements the IUser interface whereas my application has multiple types of "User". I tried using the above ...

Rhino Commons Nhibernate Module w/ Structuremap

Has anyone gotten the NH session management bits from RhinoCommons to work with Structure Map? We already use SM and do not want a dependency on Windsor. ...

NHIbernate & Rhino-Security does not save unless I call session.Flush()

Hello, I am having an issue using nHibernate and Rhino.Security. After struggling for hours to get the right config setup, I finally got the code to run without any errors. However, no entries are being saved to the database unless I call session.Flush(). Looking at various examples on the net; I should not have to call flush. Here’s ...

Multiple endpoints , NServicebus vs Rhino Bus

I am pretty new to both NServiceBus and Rhino Bus - and I am wondering if multiple endpoints will solve my problem. I want the following: 1. Have an endpoint for Invoicing messages, that runs only 1 thread at the time 2. Have another endpoint for EDI messages (~reading incoming files for electronic data interhage), only 1 thread here too...

Async read from nhibernate in web context

In a web application, I want to cache heavy calls into the db. So I want to do ansyc reads, store the result from read and transformation in a store and present the newest data I have available at the time of the request (sometimes stale) // that is the entry point public virtual IViewData DetailByKey(string key) { var articleDetail...