I have a c# solution with 3 projects – Data, WCF and UI. The first one is a class library that talks to db. It’s exposed via the second one, which is of type WCF Service Library – the reason for that is it will be exposed in third project – Asp.net app called UI – as a simple svc pointing to dll.
Just to point it out, I’m not using Repository pattern.
I need to have ISession for a WCF call (similiar to Session-per-request approach for asp.net). Can anyone share a solution that simply works? I don’t want to use any IOC for that.
Use
WcfOperationSessionContext(new in 3.0).Once bound, your Data classes just have to use
SessionFactory.GetCurrentSession().