"
ASP.NET (snapshot 2017) Microsoft documentation and samples

Creating a Business Logic Layer (C#)

by Scott Mitchell

Download Sample App or Download PDF

In this tutorial we’ll see how to centralize your business rules into a Business Logic Layer (BLL) that serves as an intermediary for data exchange between the presentation layer and the DAL.

Introduction

The Data Access Layer (DAL) created in the first tutorial cleanly separates the data access logic from the presentation logic. However, while the DAL cleanly separates the data access details from the presentation layer, it does not enforce any business rules that may apply. For example, for our application we may want to disallow the CategoryID or SupplierID fields of the Products table to be modified when the Discontinued field is set to 1, or we might want to enforce seniority rules, prohibiting situations in which an employee is managed by someone who was hired after them. Another common scenario is authorization perhaps only users in a particular role can delete products or can change the UnitPrice value.

In this tutorial we’ll see how to centralize these business rules into a Business Logic Layer (BLL) that serves as an intermediary for data exchange between the presentation layer and the DAL. In a real-world application, the BLL should be implemented as a separate Class Library project; however, for these tutorials we’ll implement the BLL as a series of classes in our App_Code folder in order to simplify the project structure. Figure 1 illustrates the architectural relationships among the presentation layer, BLL, and DAL.

The BLL Separates the Presentation Layer from the Data Access Layer and Imposes Business Rules
The BLL Separates the Presentation Layer from the Data Access Layer and Imposes Business Rules

Figure 1: The BLL Separates the Presentation Layer from the Data Access Layer and Imposes Business Rules

Step 1: Creating the BLL Classes

Our BLL will be composed of four classes, one for each TableAdapter in the DAL; each of these BLL classes will have methods for retrieving, inserting, updating, and deleting from the respective TableAdapter in the DAL, applying the appropriate business rules.

To more cleanly separate the DAL- and BLL-related classes, let’s create two subfolders in the App_Code folder, DAL and BLL. Simply right-click on the App_Code folder in the Solution Explorer and choose New Folder. After creating these two folders, move the Typed DataSet created in the first tutorial into the DAL subfolder.

Next, create the four BLL class files in the BLL subfolder. To accomplish this, right-click on the BLL subfolder, choose Add a New Item, and choose the Class template. Name the four classes ProductsBLL, CategoriesBLL, SuppliersBLL, and EmployeesBLL.

Add Four New Classes to the App_Code Folder
Add Four New Classes to the App_Code Folder

Figure 2: Add Four New Classes to the App_Code Folder

Next, let’s add methods to each of the classes to simply wrap the methods defined for the TableAdapters from the first tutorial. For now, these methods will just call directly into the DAL; we’ll return later to add any needed business logic.

[!NOTE] If you are using Visual Studio Standard Edition or above (that is, you’re not using Visual Web Developer), you can optionally design your classes visually using the Class Designer. Refer to the Class Designer Blog for more information on this new feature in Visual Studio.

For the ProductsBLL class we need to add a total of seven methods:

ProductsBLL.cs

[!code-csharpMain]

   1:  using System;
   2:  using System.Data;
   3:  using System.Configuration;
   4:  using System.Web;
   5:  using System.Web.Security;
   6:  using System.Web.UI;
   7:  using System.Web.UI.WebControls;
   8:  using System.Web.UI.WebControls.WebParts;
   9:  using System.Web.UI.HtmlControls;
  10:  using NorthwindTableAdapters;
  11:   
  12:  [System.ComponentModel.DataObject]
  13:  public class ProductsBLL
  14:  {
  15:      private ProductsTableAdapter _productsAdapter = null;
  16:      protected ProductsTableAdapter Adapter
  17:      {
  18:          get {
  19:              if (_productsAdapter == null)
  20:                  _productsAdapter = new ProductsTableAdapter();
  21:   
  22:              return _productsAdapter;
  23:          }
  24:      }
  25:   
  26:      [System.ComponentModel.DataObjectMethodAttribute
  27:          (System.ComponentModel.DataObjectMethodType.Select, true)]
  28:      public Northwind.ProductsDataTable GetProducts()
  29:      {
  30:          return Adapter.GetProducts();
  31:      }
  32:   
  33:      [System.ComponentModel.DataObjectMethodAttribute
  34:          (System.ComponentModel.DataObjectMethodType.Select, false)]
  35:      public Northwind.ProductsDataTable GetProductByProductID(int productID)
  36:      {
  37:          return Adapter.GetProductByProductID(productID);
  38:      }
  39:   
  40:      [System.ComponentModel.DataObjectMethodAttribute
  41:          (System.ComponentModel.DataObjectMethodType.Select, false)]
  42:      public Northwind.ProductsDataTable GetProductsByCategoryID(int categoryID)
  43:      {
  44:          return Adapter.GetProductsByCategoryID(categoryID);
  45:      }
  46:   
  47:      [System.ComponentModel.DataObjectMethodAttribute
  48:          (System.ComponentModel.DataObjectMethodType.Select, false)]
  49:      public Northwind.ProductsDataTable GetProductsBySupplierID(int supplierID)
  50:      {
  51:          return Adapter.GetProductsBySupplierID(supplierID);
  52:      }
  53:      [System.ComponentModel.DataObjectMethodAttribute
  54:          (System.ComponentModel.DataObjectMethodType.Insert, true)]
  55:      public bool AddProduct(string productName, int? supplierID, int? categoryID,
  56:          string quantityPerUnit, decimal? unitPrice,  short? unitsInStock,
  57:          short? unitsOnOrder, short? reorderLevel, bool discontinued)
  58:      {
  59:          // Create a new ProductRow instance
  60:          Northwind.ProductsDataTable products = new Northwind.ProductsDataTable();
  61:          Northwind.ProductsRow product = products.NewProductsRow();
  62:   
  63:          product.ProductName = productName;
  64:          if (supplierID == null) product.SetSupplierIDNull();
  65:            else product.SupplierID = supplierID.Value;
  66:          if (categoryID == null) product.SetCategoryIDNull();
  67:            else product.CategoryID = categoryID.Value;
  68:          if (quantityPerUnit == null) product.SetQuantityPerUnitNull();
  69:            else product.QuantityPerUnit = quantityPerUnit;
  70:          if (unitPrice == null) product.SetUnitPriceNull();
  71:            else product.UnitPrice = unitPrice.Value;
  72:          if (unitsInStock == null) product.SetUnitsInStockNull();
  73:            else product.UnitsInStock = unitsInStock.Value;
  74:          if (unitsOnOrder == null) product.SetUnitsOnOrderNull();
  75:            else product.UnitsOnOrder = unitsOnOrder.Value;
  76:          if (reorderLevel == null) product.SetReorderLevelNull();
  77:            else product.ReorderLevel = reorderLevel.Value;
  78:          product.Discontinued = discontinued;
  79:   
  80:          // Add the new product
  81:          products.AddProductsRow(product);
  82:          int rowsAffected = Adapter.Update(products);
  83:   
  84:          // Return true if precisely one row was inserted,
  85:          // otherwise false
  86:          return rowsAffected == 1;
  87:      }
  88:   
  89:      [System.ComponentModel.DataObjectMethodAttribute
  90:          (System.ComponentModel.DataObjectMethodType.Update, true)]
  91:      public bool UpdateProduct(string productName, int? supplierID, int? categoryID,
  92:          string quantityPerUnit, decimal? unitPrice, short? unitsInStock,
  93:          short? unitsOnOrder, short? reorderLevel, bool discontinued, int productID)
  94:      {
  95:          Northwind.ProductsDataTable products = Adapter.GetProductByProductID(productID);
  96:          if (products.Count == 0)
  97:              // no matching record found, return false
  98:              return false;
  99:   
 100:          Northwind.ProductsRow product = products[0];
 101:   
 102:          product.ProductName = productName;
 103:          if (supplierID == null) product.SetSupplierIDNull();
 104:            else product.SupplierID = supplierID.Value;
 105:          if (categoryID == null) product.SetCategoryIDNull();
 106:            else product.CategoryID = categoryID.Value;
 107:          if (quantityPerUnit == null) product.SetQuantityPerUnitNull();
 108:            else product.QuantityPerUnit = quantityPerUnit;
 109:          if (unitPrice == null) product.SetUnitPriceNull();
 110:            else product.UnitPrice = unitPrice.Value;
 111:          if (unitsInStock == null) product.SetUnitsInStockNull();
 112:            else product.UnitsInStock = unitsInStock.Value;
 113:          if (unitsOnOrder == null) product.SetUnitsOnOrderNull();
 114:            else product.UnitsOnOrder = unitsOnOrder.Value;
 115:          if (reorderLevel == null) product.SetReorderLevelNull();
 116:            else product.ReorderLevel = reorderLevel.Value;
 117:          product.Discontinued = discontinued;
 118:   
 119:          // Update the product record
 120:          int rowsAffected = Adapter.Update(product);
 121:   
 122:          // Return true if precisely one row was updated,
 123:          // otherwise false
 124:          return rowsAffected == 1;
 125:      }
 126:   
 127:      [System.ComponentModel.DataObjectMethodAttribute
 128:          (System.ComponentModel.DataObjectMethodType.Delete, true)]
 129:      public bool DeleteProduct(int productID)
 130:      {
 131:          int rowsAffected = Adapter.Delete(productID);
 132:   
 133:          // Return true if precisely one row was deleted,
 134:          // otherwise false
 135:          return rowsAffected == 1;
 136:      }
 137:  }

The methods that simply return data GetProducts, GetProductByProductID, GetProductsByCategoryID, and GetProductBySuppliersID are fairly straightforward as they simply call down into the DAL. While in some scenarios there may be business rules that need to be implemented at this level (such as authorization rules based on the currently logged on user or the role to which the user belongs), we’ll simply leave these methods as-is. For these methods, then, the BLL serves merely as a proxy through which the presentation layer accesses the underlying data from the Data Access Layer.

The AddProduct and UpdateProduct methods both take in as parameters the values for the various product fields and add a new product or update an existing one, respectively. Since many of the Product table’s columns can accept NULL values (CategoryID, SupplierID, and UnitPrice, to name a few), those input parameters for AddProduct and UpdateProduct that map to such columns use nullable types. Nullable types are new to .NET 2.0 and provide a technique for indicating whether a value type should, instead, be null. In C# you can flag a value type as a nullable type by adding ? after the type (like int? x;). Refer to the Nullable Types section in the C# Programming Guide for more information.

All three methods return a Boolean value indicating whether a row was inserted, updated, or deleted since the operation may not result in an affected row. For example, if the page developer calls DeleteProduct passing in a ProductID for a non-existent product, the DELETE statement issued to the database will have no affect and therefore the DeleteProduct method will return false.

Note that when adding a new product or updating an existing one we take in the new or modified product’s field values as a list of scalars as opposed to accepting a ProductsRow instance. This approach was chosen because the ProductsRow class derives from the ADO.NET DataRow class, which doesn’t have a default parameterless constructor. In order to create a new ProductsRow instance, we must first create a ProductsDataTable instance and then invoke its NewProductRow() method (which we do in AddProduct). This shortcoming rears its head when we turn to inserting and updating products using the ObjectDataSource. In short, the ObjectDataSource will try to create an instance of the input parameters. If the BLL method expects a ProductsRow instance, the ObjectDataSource will try to create one, but fail due to the lack of a default parameterless constructor. For more information on this problem, refer to the following two ASP.NET Forums posts: Updating ObjectDataSources with Strongly-Typed DataSets, and Problem With ObjectDataSource and Strongly-Typed DataSet.

Next, in both AddProduct and UpdateProduct, the code creates a ProductsRow instance and populates it with the values just passed in. When assigning values to DataColumns of a DataRow various field-level validation checks can occur. Therefore, manually putting the passed in values back into a DataRow helps ensure the validity of the data being passed to the BLL method. Unfortunately the strongly-typed DataRow classes generated by Visual Studio do not use nullable types. Rather, to indicate that a particular DataColumn in a DataRow should correspond to a NULL database value we must use the SetColumnNameNull() method.

In UpdateProduct we first load in the product to update using GetProductByProductID(productID). While this may seem like an unnecessary trip to the database, this extra trip will prove worthwhile in future tutorials that explore optimistic concurrency. Optimistic concurrency is a technique to ensure that two users who are simultaneously working on the same data don’t accidentally overwrite one another’s changes. Grabbing the entire record also makes it easier to create update methods in the BLL that only modify a subset of the DataRow’s columns. When we explore the SuppliersBLL class we’ll see such an example.

Finally, note that the ProductsBLL class has the DataObject attribute applied to it (the [System.ComponentModel.DataObject] syntax right before the class statement near the top of the file) and the methods have DataObjectMethodAttribute attributes. The DataObject attribute marks the class as being an object suitable for binding to an ObjectDataSource control, whereas the DataObjectMethodAttribute indicates the purpose of the method. As we’ll see in future tutorials, ASP.NET 2.0’s ObjectDataSource makes it easy to declaratively access data from a class. To help filter the list of possible classes to bind to in the ObjectDataSource’s wizard, by default only those classes marked as DataObjects are shown in the wizard’s drop-down list. The ProductsBLL class will work just as well without these attributes, but adding them makes it easier to work with in the ObjectDataSource’s wizard.

Adding the Other Classes

With the ProductsBLL class complete, we still need to add the classes for working with categories, suppliers, and employees. Take a moment to create the following classes and methods using the concepts from the example above:

The one method worth noting is the SuppliersBLL class’s UpdateSupplierAddress method. This method provides an interface for updating just the supplier’s address information. Internally, this method reads in the SupplierDataRow object for the specified supplierID (using GetSupplierBySupplierID), sets its address-related properties, and then calls down into the SupplierDataTable’s Update method. The UpdateSupplierAddress method follows:

[!code-csharpMain]

   1:  [System.ComponentModel.DataObjectMethodAttribute
   2:      (System.ComponentModel.DataObjectMethodType.Update, true)]
   3:  public bool UpdateSupplierAddress
   4:      (int supplierID, string address, string city, string country)
   5:  {
   6:      Northwind.SuppliersDataTable suppliers =
   7:          Adapter.GetSupplierBySupplierID(supplierID);
   8:      if (suppliers.Count == 0)
   9:          // no matching record found, return false
  10:          return false;
  11:      else
  12:      {
  13:          Northwind.SuppliersRow supplier = suppliers[0];
  14:   
  15:          if (address == null) supplier.SetAddressNull();
  16:            else supplier.Address = address;
  17:          if (city == null) supplier.SetCityNull();
  18:            else supplier.City = city;
  19:          if (country == null) supplier.SetCountryNull();
  20:            else supplier.Country = country;
  21:   
  22:          // Update the supplier Address-related information
  23:          int rowsAffected = Adapter.Update(supplier);
  24:   
  25:          // Return true if precisely one row was updated,
  26:          // otherwise false
  27:          return rowsAffected == 1;
  28:      }
  29:  }

Refer to this article’s download for my complete implementation of the BLL classes.

Step 2: Accessing the Typed DataSets Through the BLL Classes

In the first tutorial we saw examples of working directly with the Typed DataSet programmatically, but with the addition of our BLL classes, the presentation tier should work against the BLL instead. In the AllProducts.aspx example from the first tutorial, the ProductsTableAdapter was used to bind the list of products to a GridView, as shown in the following code:

[!code-csharpMain]

   1:  ProductsTableAdapter productsAdapter = new ProductsTableAdapter();
   2:  GridView1.DataSource = productsAdapter.GetProducts();
   3:  GridView1.DataBind();

To use the new BLL classes, all that needs to be changed is the first line of code simply replace the ProductsTableAdapter object with a ProductBLL object:

[!code-csharpMain]

   1:  ProductsBLL productLogic = new ProductsBLL();
   2:  GridView1.DataSource = productLogic.GetProducts();
   3:  GridView1.DataBind();

The BLL classes can also be accessed declaratively (as can the Typed DataSet) by using the ObjectDataSource. We’ll be discussing the ObjectDataSource in greater detail in the following tutorials.

The List of Products is Displayed in a GridView

Figure 3: The List of Products is Displayed in a GridView (Click to view full-size image)

Step 3: Adding Field-Level Validation to the DataRow Classes

Field-level validation are checks that pertains to the property values of the business objects when inserting or updating. Some field-level validation rules for products include:

These rules can and should be expressed at the database level. The character limit on the ProductName and QuantityPerUnit fields are captured by the data types of those columns in the Products table (nvarchar(40) and nvarchar(20), respectively). Whether fields are required and optional are expressed by if the database table column allows NULL s. Four check constraints exist that ensure that only values greater than or equal to zero can make it into the UnitPrice, UnitsInStock, UnitsOnOrder, or ReorderLevel columns.

In addition to enforcing these rules at the database they should also be enforced at the DataSet level. In fact, the field length and whether a value is required or optional are already captured for each DataTable’s set of DataColumns. To see the existing field-level validation automatically provided, go to the DataSet Designer, select a field from one of the DataTables and then go to the Properties window. As Figure 4 shows, the QuantityPerUnit DataColumn in the ProductsDataTable has a maximum length of 20 characters and does allow NULL values. If we attempt to set the ProductsDataRow’s QuantityPerUnit property to a string value longer than 20 characters an ArgumentException will be thrown.

The DataColumn Provides Basic Field-Level Validation

Figure 4: The DataColumn Provides Basic Field-Level Validation (Click to view full-size image)

Unfortunately, we can’t specify bounds checks, such as the UnitPrice value must be greater than or equal to zero, through the Properties window. In order to provide this type of field-level validation we need to create an event handler for the DataTable’s ColumnChanging event. As mentioned in the preceding tutorial, the DataSet, DataTables, and DataRow objects created by the Typed DataSet can be extended through the use of partial classes. Using this technique we can create a ColumnChanging event handler for the ProductsDataTable class. Start by creating a class in the App_Code folder named ProductsDataTable.ColumnChanging.cs.

Add a New Class to the App_Code Folder

Figure 5: Add a New Class to the App_Code Folder (Click to view full-size image)

Next, create an event handler for the ColumnChanging event that ensures that the UnitPrice, UnitsInStock, UnitsOnOrder, and ReorderLevel column values (if not NULL) are greater than or equal to zero. If any such column is out of range, throw an ArgumentException.

ProductsDataTable.ColumnChanging.cs

[!code-csharpMain]

   1:  public partial class Northwind
   2:  {
   3:      public partial class ProductsDataTable
   4:      {
   5:          public override void BeginInit()
   6:           {
   7:              this.ColumnChanging += ValidateColumn;
   8:           }
   9:   
  10:           void ValidateColumn(object sender,
  11:             DataColumnChangeEventArgs e)
  12:           {
  13:              if(e.Column.Equals(this.UnitPriceColumn))
  14:              {
  15:                 if(!Convert.IsDBNull(e.ProposedValue) &&
  16:                    (decimal)e.ProposedValue < 0)
  17:                 {
  18:                    throw new ArgumentException(
  19:                        "UnitPrice cannot be less than zero", "UnitPrice");
  20:                 }
  21:              }
  22:              else if (e.Column.Equals(this.UnitsInStockColumn) ||
  23:                       e.Column.Equals(this.UnitsOnOrderColumn) ||
  24:                       e.Column.Equals(this.ReorderLevelColumn))
  25:              {
  26:                  if (!Convert.IsDBNull(e.ProposedValue) &&
  27:                      (short)e.ProposedValue < 0)
  28:                  {
  29:                      throw new ArgumentException(string.Format(
  30:                          "{0} cannot be less than zero", e.Column.ColumnName),
  31:                          e.Column.ColumnName);
  32:                  }
  33:              }
  34:           }
  35:      }
  36:  }

Step 4: Adding Custom Business Rules to the BLL’s Classes

In addition to field-level validation, there may be high-level custom business rules that involve different entities or concepts not expressible at the single column level, such as:

The BLL classes should contain checks to ensure adherence to the application’s business rules. These checks can be added directly to the methods to which they apply.

Imagine that our business rules dictate that a product could not be marked discontinued if it was the only product from a given supplier. That is, if product X was the only product we purchased from supplier Y, we could not mark X as discontinued; if, however, supplier Y supplied us with three products, A, B, and C, then we could mark any and all of these as discontinued. An odd business rule, but business rules and common sense aren’t always aligned!

To enforce this business rule in the UpdateProducts method we’d start by checking if Discontinued was set to true and, if so, we’d call GetProductsBySupplierID to determine how many products we purchased from this product’s supplier. If only one product is purchased from this supplier, we throw an ApplicationException.

[!code-csharpMain]

   1:  public bool UpdateProduct(string productName, int? supplierID, int? categoryID,
   2:      string quantityPerUnit, decimal? unitPrice, short? unitsInStock,
   3:      short? unitsOnOrder, short? reorderLevel, bool discontinued, int productID)
   4:  {
   5:      Northwind.ProductsDataTable products = Adapter.GetProductByProductID(productID);
   6:      if (products.Count == 0)
   7:          // no matching record found, return false
   8:          return false;
   9:   
  10:      Northwind.ProductsRow product = products[0];
  11:   
  12:      // Business rule check - cannot discontinue
  13:      // a product that is supplied by only
  14:      // one supplier
  15:      if (discontinued)
  16:      {
  17:          // Get the products we buy from this supplier
  18:          Northwind.ProductsDataTable productsBySupplier =
  19:              Adapter.GetProductsBySupplierID(product.SupplierID);
  20:   
  21:          if (productsBySupplier.Count == 1)
  22:              // this is the only product we buy from this supplier
  23:              throw new ApplicationException(
  24:                  "You cannot mark a product as discontinued if it is the only
  25:                    product purchased from a supplier");
  26:      }
  27:   
  28:      product.ProductName = productName;
  29:      if (supplierID == null) product.SetSupplierIDNull();
  30:        else product.SupplierID = supplierID.Value;
  31:      if (categoryID == null) product.SetCategoryIDNull();
  32:        else product.CategoryID = categoryID.Value;
  33:      if (quantityPerUnit == null) product.SetQuantityPerUnitNull();
  34:        else product.QuantityPerUnit = quantityPerUnit;
  35:      if (unitPrice == null) product.SetUnitPriceNull();
  36:        else product.UnitPrice = unitPrice.Value;
  37:      if (unitsInStock == null) product.SetUnitsInStockNull();
  38:        else product.UnitsInStock = unitsInStock.Value;
  39:      if (unitsOnOrder == null) product.SetUnitsOnOrderNull();
  40:        else product.UnitsOnOrder = unitsOnOrder.Value;
  41:      if (reorderLevel == null) product.SetReorderLevelNull();
  42:        else product.ReorderLevel = reorderLevel.Value;
  43:      product.Discontinued = discontinued;
  44:   
  45:      // Update the product record
  46:      int rowsAffected = Adapter.Update(product);
  47:   
  48:      // Return true if precisely one row was updated,
  49:      // otherwise false
  50:      return rowsAffected == 1;
  51:  }

Responding to Validation Errors in the Presentation Tier

When calling the BLL from the presentation tier we can decide whether to attempt to handle any exceptions that might be raised or let them bubble up to ASP.NET (which will raise the HttpApplication’s Error event). To handle an exception when working with the BLL programmatically, we can use a try…catch block, as the following example shows:

[!code-csharpMain]

   1:  ProductsBLL productLogic = new ProductsBLL();
   2:   
   3:  // Update information for ProductID 1
   4:  try
   5:  {
   6:      // This will fail since we are attempting to use a
   7:      // UnitPrice value less than 0.
   8:      productLogic.UpdateProduct(
   9:          "Scott s Tea", 1, 1, null, -14m, 10, null, null, false, 1);
  10:  }
  11:  catch (ArgumentException ae)
  12:  {
  13:      Response.Write("There was a problem: " + ae.Message);
  14:  }

As we’ll see in future tutorials, handling exceptions that bubble up from the BLL when using a data Web control for inserting, updating, or deleting data can be handled directly in an event handler as opposed to having to wrap code in try...catch blocks.

Summary

A well architected application is crafted into distinct layers, each of which encapsulates a particular role. In the first tutorial of this article series we created a Data Access Layer using Typed DataSets; in this tutorial we built a Business Logic Layer as a series of classes in our application’s App_Code folder that call down into our DAL. The BLL implements the field-level and business-level logic for our application. In addition to creating a separate BLL, as we did in this tutorial, another option is to extend the TableAdapters’ methods through the use of partial classes. However, using this technique does not allow us to override existing methods nor does it separate our DAL and our BLL as cleanly as the approach we’ve taken in this article.

With the DAL and BLL complete, we’re ready to start on our presentation layer. In the next tutorial we’ll take a brief detour from data access topics and define a consistent page layout for use throughout the tutorials.

Happy Programming!

About the Author

Scott Mitchell, author of seven ASP/ASP.NET books and founder of 4GuysFromRolla.com, has been working with Microsoft Web technologies since 1998. Scott works as an independent consultant, trainer, and writer. His latest book is Sams Teach Yourself ASP.NET 2.0 in 24 Hours. He can be reached at mitchell@4GuysFromRolla.com. or via his blog, which can be found at http://ScottOnWriting.NET.

Special Thanks To

This tutorial series was reviewed by many helpful reviewers. Lead reviewers for this tutorial were Liz Shulok, Dennis Patterson, Carlos Santos, and Hilton Giesenow. Interested in reviewing my upcoming MSDN articles? If so, drop me a line at mitchell@4GuysFromRolla.com.

Previous Next



Comments ( )
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/overview/data-access/introduction/creating-a-business-logic-layer-cs.htm
< THANKS ME>