middle-tier

Validation in the middle tier

I want to do validation on my business code. I'm thinking on 2 ways to do this. One, do the validation on my class property setters in the following fashion class Student{ public string Name{ get { return _name; } set { if (value.IsNullOrEmpty) throw exception ... } } } Now, the problem with this approach ...

How to create an XPS document in a WCF service to store and return?

I've got a WCF service as middle tier, and on some occasions I need to create a printable document, store it for future reference in the database, and return it to the client. My first choice as file format was XPS, so I'd like to create an XPS document in a WCF service, store it, and return it. Is there an easy way to achieve this, or...

Using Postgresql as middle layer. Need opinion.

Hi all, I need some opinions. I'm going to develop a POS and inventory software for a friend. This is a one man small scale project so I want to make the architecture as simple as possible. I'm using Winform to develop the GUI (web interface doesn't make sense for POS software). For the database, I am using Postgresql. The program wil...

Moving from a direct db connection per user to using a web-service with pooled connections.

Hi All, I'm working on moving a V.Rich Client from talking direct to the DB with one login per user to talking direct with a WCF service layer. In the new model I'm like the users to authenticate with the middle tier and for the middle tier to us just one account to connect to the database. My problem comes in that the database's tri...

How to send a secure request to a data tier over a firewall

I've been asked to populate a flash file with some data from a database. I said, "Great, I will write some PHP that talks to the database and outputs xml. The swf can call that file." My boss then told me that that solution wouldn't make the cut with IS, and I would have to find a more secure way of doing it. Ugh! My proposed solution ...

Classic ASP app has COM 'middle layer' for light business logic. Is this needed in ASP.NET?

I am trying to estimate how long it will take to migrate a Classic ASP application to .NET and came across hundreds of COM functions written in VB 6. A majority of these functions only do parameter validation and actually calls the SQL server. Is this something that should be replace with an ORM? (Linq, nHibernate, Entity Framework)......