We're going to be rebuilding one of our sites in .Net. I've read many articles and really like the idea of separating our project into a data access layer (DAL), Business logic layer (BLL), and presentation layer (we're coming from classic ASP so this is a massive step for us). I also really like Linq to SQL.
Since Linq to SQL is aimed...
I am trying to implement caching in an web application. The caching is to be done in the BLL.
The BLL method signiture is
public static List<Ailias> Select(List<Filter> filters)
and at the moment simply calls the corresponding method in the DAL.
The issue I'm having is my cache dependancy will be the filters object, whenever the fi...
Using VB 2008 .NET 3.5
I am working on an N-Layer desktop application.
Suppose a method in the BLL runs into an situation where the user needs to be notified and the method needs to wait for the user input (OK, Cancel, etc.) before continuing. How do you typically handle this?
Assume that this situation happens fairly often but not a...
Simple question for which I think I have an answer but I am looking for a sounding board. Should the DAL be the one translating whatever comes from the database (be it through straight SQL, stored procedures, ORM, whatever) into Domain Entities as understood by the business layer?
On a separate note, should all Domain Entities be defined...
Hi guys,
I am an ASP.NET C# web developer.
The architecture followed is 3 layer
The layers used are
1. UI
2. BLL (Sometimes Communicating with BLL is done using WebServices)
3. DAL
Pretty basic stuff.
What I would really like to have is a BLL.Common class in the BusinessLogics.
Here I would like to use some useful extensions and help...
Dear all,
In my company I must use a Bll, Dal and model layer for creating applications with a database.
I've learned at school that every databasetable should be an object in my model. so I create the whole model of my database.
Also I've learned that for every table (or model object) there should be a DAO created into the DAL. So I d...
It seems like such an easy thing to do, but im stumped.
I have a DAL & BLL. Within my BLL i have a the following function returning one video by its id
Public Function GetTrainingVideoById(ByVal id As Integer) As TPSupportDataSet.TraningVideosDataTable
Return Adapter.KB_TRAININGVIDEO_S_ID(id)
End Function
Now on my aspx page i ha...
I'm working on a small application from scratch and using it to try to teach myself architecture and design concepts. It's a .NET 3.5, WPF application, and I'm using Sql Compact Edition as my data store.
I'm working on the business logic layer, and have just now begun to write the DAL. I'm just using SqlCeComamnds to send over simple ...
I got a Data Access Layer that's being formed by one DBML in which i just include all object I need. Is it necessary to write more functionality in this dbml or can I just use the dbml as my DAL? I ask this because I am currently writing functionality to, for example, get all Articles from a Table in the Business Logic Layer. So I'm kind...
I have a class "Artikel" and there i write some Business Logic. I also have a class "tArtikel" which is a type. In my class "Artikel" I work with "tArtikel" and returns are of that type. Now when i instantiate an "Artikel" i want it to be of type "tArtikel", so what i tried in my code is:
public tArtikel Artikel()
{
...
Hi,
In many posts concerning this topic I come across very simple examples that do not answer my question.
Let's say a have a document table and user table. In DAL written in ADO.NET i have a method to retries all documents for some criteria. Now I the UI I have a case where I need to show this list along with the names of the creator...
In my situation, my company services many types of customers. Almost every customer requires their own Business Logic. Of course, there will be a base layer that all business logic should inherit from. However, I'm going back and forth on architecting this--either in one dll for all customers or one dll for each.
My biggest point of con...
I have 3 major layers:
UI->BL->DL (and I'm using Active Record/Nhibernate if it matters).
My question is simple: where should TransactionScopes and ISessionScopes be implemented?
My idea is to use transactions either on BL or DL and ISessionScopes only on BL, wrapping multiple (or not) methods from DL so they will share one session.
Is...
I have a question regarding n-layer architecture. I thought long and hard before asking this question as there's a lot of similar questions here already... however, after literally a day and a half looking at it and reading these other answers I'm still unsure. The variety of seemingly similar terminology and different approaches has me ...
Hi All,
This question is regarding the ASP.NET webservice that i am creating using the DAL-BLL architecture for my final school project.
I have a stored procedure, which is a select query with an inner join for 2 tables. Hence the stored procedure returns multi-table value. One of my DAL tableAdapter methods accesses this stored procedu...
Hi,
I'm new to MVC and even though there is a lot (and I do mean a lot) of information out there that is very useful - it's proofing very difficult to get a clear understanding on how to achieve my exact requirements with MVC 2.0.
I would like to set up a solution as follows:
Provide a web UI using an MVC 2.0 project.
Use Linq to SQL ...
Hi,
I'm writing a client/server system. The server has a DAL/BLL design. The client is responsible for presenting the data objects and providing dialogs and wizard to allow the user to update these objects (i.e. adding/editing a user).
Initially I thought I'll just make the DAL objects have a universal data provider object so they can...
I'm currently looking at RIA services, in order to speed development of Silverlight enterprise applications. It's clever and powerful, but it seems to me that you are invariably going to collapse your business logic into the presentation layer. Is there any place for a classic BLL (business logic layer) when using RIA?
Update: Did some ...
Hi eveybody,
I'm designing a C# application
Presentation ( web site + flex apps )
Business Logical Layer (might be WCF to enable multi client platforms)
Data Access Layer ( With NHibernate )
We're going to integrate our solution in many preexistant client's database environnements and we would like to use NHibernate in the DAL.. My...
I have a gridview in a page, linked to an objectdatasource that is linked to a function in a BLL.
the gridview delete query links to a delete method in the BLL class.
When something goes wrong, I throw a new exception in the BLL class.
Now to catch this exception if anything goes wrong, I have written the following behind the gridview ...