.NET
  Home arrow .NET arrow Building the Business Logic Layer
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Building the Business Logic Layer
By: Addison-Wesley/Prentice Hall PTR
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2009-12-23

    Table of Contents:
  • Building the Business Logic Layer
  • Creating a Class
  • Adding a Class to a Project
  • Documenting the Class

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building the Business Logic Layer


    (Page 1 of 4 )

    If you've done any developing in .NET, you know the importance of classes. This six-part series shows how to use classes when building the business logic layer of a .NET application. It is excerpted from chapter five of the book Doing Objects in Visual Basic 2005, written by Deborah Kurata (Addison-Wesley, 2008; ISBN: 0321320492).

    If you have class, you’ve got it made. If you don’t have class, no matter what else you have, it won’t make up for it.

    —Ann Landers

    If you have classes in your application, you’ve got it made. If you don’t have classes, no matter what else you have, it won’t make up for it. Classes are central to development in .NET.

    In fact, it is difficult to build a .NET application without using classes. If you added a form to your project, you have already created a class. A form is just a class that inherits from the .NET Framework System. Windows.Forms.Form class, which gives the class the attributes and behaviors of a form.

    In the preceding chapter, you saw how to use classes to build the user interface layer. This chapter shows you how to build classes for the business logic layer.

    This chapter covers the fundamentals of creating classes and defining properties and methods. It also details more advanced topics such as using generics and building a base business object class. The Purchase Tracker sample application is used to demonstrate these techniques.

    What Does This Chapter Cover?

    This chapter demonstrates the following techniques:

    1. Creating a class
    2. Documenting the class with XML comments 
       
    3. Adding exception classes to your class file 
       
    4. Defining properties 
       
    5. Defining property accessibility 
       
    6. Understanding generics 
       
    7. Handling Nullable types 
       
    8. Defining methods 
       
    9. Passing parameters ByVal or ByRef 
       
    10. Overloading methods 
       
    11. Marking methods as obsolete 
       
    12. Creating a base business object class 
       
    13. Overriding base class members

    This chapter covers the basics of how to create a class and then builds on those basics to detail some of the new Visual Basic 2005 features such as XML comments and generics. If you have already been doing object-oriented programming in Visual Basic, you already know the basics. But if you want to “build along” as you read through this book, work through the basics before moving on to the more advanced features later in this chapter.

    More .NET Articles
    More By Addison-Wesley/Prentice Hall PTR


     

    .NET ARTICLES

    - ASP.NET 3.5 Role Based Security and User Aut...
    - Creating ASP.NET Login Web Pages and Basic C...
    - Configure DotNetNuke for First Time Use
    - VB.NET Data Retrieval: How to Retrieve Entir...
    - Introducing .NET
    - Building Business Objects for an Application
    - Methods for an Application`s Business Logic ...
    - Properties of an Application`s Business Logi...
    - Classes and Properties in an Application`s B...
    - Organizing Code for the Business Logic Layer...
    - Building the Business Logic Layer
    - Completing a Business Layer with Windows Wor...
    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek