G
Guest
I understand that there are a several ways to architect an n-tier solution,
but I think we can keep it simple in our projects...they tend to be pretty
small. I just need to know if I have the right idea.
1) We're building ASP.NET apps and I intend to add WinForm apps to the mix.
2) We're using SQL Server 2005 for the backend.
3) I'm adding .NET Class Libraries for the business layer.
Here's what I'm unsure of. For the business layer, is the basic idea to have
static methods in my class which I call from the front end?
Example:
Web page -> MyBusinessObject.GetNumClients() -> call SQL Server sproc
Web page -> MyBusinessObject.SaveClientName( name ) -> call SQL Server sproc
and so on. Should look the same for WinForm apps.
Is this the right idea? Again, I don't THINK we need anything elaborate.
Just something that will perform reasonably well and allow reuse of our calls
to the database.
Thanks,
Jay
but I think we can keep it simple in our projects...they tend to be pretty
small. I just need to know if I have the right idea.
1) We're building ASP.NET apps and I intend to add WinForm apps to the mix.
2) We're using SQL Server 2005 for the backend.
3) I'm adding .NET Class Libraries for the business layer.
Here's what I'm unsure of. For the business layer, is the basic idea to have
static methods in my class which I call from the front end?
Example:
Web page -> MyBusinessObject.GetNumClients() -> call SQL Server sproc
Web page -> MyBusinessObject.SaveClientName( name ) -> call SQL Server sproc
and so on. Should look the same for WinForm apps.
Is this the right idea? Again, I don't THINK we need anything elaborate.
Just something that will perform reasonably well and allow reuse of our calls
to the database.
Thanks,
Jay