What is Unity? The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection. Dependency injection is used to create loosely coupled applications. These kind of applications are easier to maintain and easier to test. What do we want to achieve? We want to make our controllers loosely coupled and break any hard dependencies it has. Every object/resource that our controller needs, has to be automatically populated and correctly initiated by Unity. The Asp.net...
2011-04-23
2011-04-06
NHibernate in combination with a webservice
Posted by
Kenny Tordeur
,
at
Wednesday, April 06, 2011
In this post i ‘ill try to explain how you can make NHibernate interact with a webservice to fill in a certain object. Current situation This is the current situation that we have. We have a webservice called “Marial State service”. This service is responsible for all marial states available. This service has only 2 methods: GetAll() Gives all the available marial states GetById(Int32 id) Gives a specific marial state by it’s id The client is an application that has it’s own database and uses NHibernate as ORM. The client is responsible...
Subscribe to:
Posts (Atom)