bll

How does the MVC pattern differ, if at all, from the DAL / BLL design pattern?

I'm making my way through the early Data Access Tutorials on Microsoft's ASP.NET website and it occurred to me that this all seems awfully similar to what I have read about separating your logic and presentation code using the MVC pattern. As a newbie I have yet to implement the MVC pattern but I'm curious as to how these two design stru...

Is it worth it to write a bunch of 2 liner functions in BLL object just to re-route to DAL?

It seems pretty silly to me. What don't I get? ...

Sharepoint Web Part Management

I have a rather large project developed on Sharepoint and Project Server, designed as a multi-tier application. I programmatically manage web parts on certain web part pages. According to the choices of the user in one of the web pages, appropriate web parts are added to the web part collection of another web part page. My problem is tha...

DAL and BLL in .NET

There is this DAL/BLL design suggestion by Microsoft for ASP.NET (2.0) apps. I know some of the alternatives and I've read related questions here on SO. However I wonder if this proposed solution is worth implementing nowadays, is there a specific downside you know of? I want to develop DAL/BLL components for company-internal use, to ac...

File Management: Handled by the Data Access Layer of Business Layer???

So, I am working on this web based app following the Repository model, a wannabe DDD dork, using StructureMap.... blah, blah, blah... One aspect of the application allows users to upload and manage files. Where, what layer, should be responsible for managing the saving/ deleting of these user files? The Business Layer, or the Data Ac...

Linq to SQL Updating through BLL issues - Best Practices

The Setup: I have a large form with many fields that are collected to update a Product object. So in the ASPX page the user changes the fields that need updating and they hit submit. In the code behind I do something like this; Dim p as New MyCompany.Product() p = p.GetProductById(ProductID) I extend the Product partial class of Li...

What to return from the DAL to BLL

Hello Everyone, I currently have an application which consists of: User Interface (web page) BLL (Manager & Domain Objects) DAL (DataAccess class for each of my Domain Objects). I use the following in the UI to search for a domain object. protect sub Button1_Click() { IBook book = BookManager.GetBook(txtID.Text); } Here is my BL...

Do you allow the Web Tier to access the DAL directly?

I'm interested in perceived "best practice", tempered with a little dose of reality here. In a web application, do you allow your web tier to directly access the DAL, or should it go through a BLL first? I'm talking specifically of scenarios where there's no "business logic" really involved -- such as a simple query : "Fetch all custom...

POCO's, DTO's, DLL's and Anaemic Domain Models...

I was looking at the differences between POCO and DTO (It appears that POCO's are dto's with behaviour (methods?))and came across this article by Martin Fowler on the anaemic domain model. Through lack of understanding, I think I have created one of these anaemic domain models. In one of my applications I have my business domain entit...

Manual DAL & BLL vs. ORM

Which approach is better: 1) to use a third-party ORM system or 2) manually write DAL and BLL code to work with the database? 1) In one of our projects, we decided using the DevExpress XPO ORM system, and we ran across lots of slight problems that wasted a lot of our time. Amd still from time to time we encounter problems and exceptions...

ASP.NET insert from bll to mysql

I am trying to make an insert to an MySql database using a three layer solution (or what it might be called). I have done this may times with an MS-sql database and it has worked very well. But now when I am trying to make an insert I get the the ID can't be null. I thought the database took care of that. If I write an insert directly ...

BLL errors best practise

What is the best practise for returning an error of a business rule in a BLL? SHould I just raise exceptions and catch them in the presentation layer, shoudl I return some kind of object that holds any exception type info? ...

GUI to Business Object Mapping VB.Net

The issue I'm currently having is mapping multiple GUI fields to object properties (i.e. Presentation layer to Business Logic Layer mapping). To be more specific, this is in VB.Net 2.0 WinForms. The nature of the solution requires us to have 4 columns which exhibit the same type of behavior on our GUI - each column consisting of 11 tex...

What interacts with the DotNetNuke UserLogin function found in the AspNetMembershipProvider?

I'm trying to figure out where the login functionality is that interacts with the UserLogin function of the AspNetMembershipProvider section, there's no references to where the login functionality exists. I know this is the function to intact with the data, I just need to find where in the source code the login is so I can customize the ...

What's your favorite Advanced ASP.NET book?

What would be some highly recommended books to get for a mid-level developer to learn advanced ASP.NET/C#/VB.NET techniques? Including, but not limited to, taking advantage of inheritance, when to use base pages, overriding base class methods, application architecture, interfaces, applying GOF design patterns in Web Applications, DAL, an...

What is your favorite Business Logic Layer (BLL) development toolkit for .NET? Are there any at all?

What is your favorite Business Logic Layer (BLL) development toolkit? Are there any at all? BLL toolkit is a set of classes (controls, VS.NET add-ins) handling typical business logic scenarios. E.g. implementing access control, providing validation and so on. Of course, IMHO. ...

Where is boost::lambda::ll?

Hi all, I can't seem to find boost::lambda::ll for a nested ll::for_each() invocations in any header file in the boost_1_39_0 distribution. Could someone point me to the right direction? Thanks. ...

How do you map LINQ-to-SQL to your BLL classes?

I'm considering using LINQ-to-SQL for creating the DAL in my app. I normally create the DAL manually as I'm not a big fan of ORM (too much abstraction IMO) but I'm trying to save some time for an impatient client. My question is, how do you map the classes generated by LINQ-to-SQL to your BLL classes? Do you just add your code to the cl...

Problem Using AutoMapper To Map DAL Properties To BLL Properties

I have a BLL class which contains properties for the fields in a Country table (CountryCode, CountryName, etc). It also has a property ioDAL, which is a reference to a DAL class (created with SubSonic 2.2), which has same named fields. I have a LoadRecord() method which calls the DAL's FetchById() method that populates the DAL properti...

How to pass data between BLL and UI in 3-layer (single tier) application?

I am a fairly rookie programmer who is trying to learn the basics of n-layered architecture (DAL, BLL, UI). The application I am programming is a single tier, 3-layer application written in VB.NET (.Net 3.5). Layers as follows: DAL BLL UI COMMON - contains DTO's right now. I am having trouble determining what to pass between my BL...