New Series on DataSources and DataBinding

by Ryan 14. April 2008 07:51
I started a new series over at my *other* blog. It's all about the use of DataSources and DataBinding...check it out at http://weblogs.asp.net/ryansmith/archive/2008/04/11/data-access-and-data-binding-for-the-new-asp-net-developer.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

CSLADesigner on CodePlex

by Ryan 2. January 2008 17:19

Gulp!

I published my first Codeplex project.  http://www.codeplex.com/CSLADesignLibrary3

It's a library (and sample app) of CSLA object generation tools. 

I was having a hard time wrapping my head around OOD and all the code gen tools I found seemed to start at the database level and work their way to the objects...which in OOD is backwards.  So here's the tool...it asks about your object and then creates the object from those responses.

So Objects first...the database schema second.

Schmeah...it's a start anyway.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

CSLADesigner | CSLA

Data Access Application Block - Part 1

by Ryan 10. December 2007 13:20

Data Access Application Block

Today I will be showing you a simple example of using the Data Access Application Block from the Enterprise Library v3.1.  Here I’ll show how to use the Enterprise Library Configuration utility to create your app.config or web.config sections, so that the application block knows where to get it’s info.   After implementing the method using the Data Access Application Block I’ll show you what it’s like without using it and you can see for yourself how much easier it is.

More...

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Enterprise Library

Enterprise Library - Start Here

by Ryan 7. December 2007 16:12

The Enterprise Library

If you're like me when you've heard this mentioned your head spun, just a little.  Then when you hear it comes from Microsoft's Patterns and Practices group, your head completes it's 360 degree rotation.

So what is it?  It's a collection of application blocks.  Great Ryan, thanks....what's an application block?  An application block is a set of methods that encapsulate the best practices for doing a particular task.  For example we all know there is about a zillion and one combinations of steps you can take to open a database, construct a query, pass that query and retrieve your data.  But there are ways that are better than others.  So, one of the application blocks included with the Enterprise Library is called the Data Access Application Block, which provides you a series of methods that streamline this process.  I'll write a bit more on each of the Application Blocks in coming posts.

Configuration Tool

The Enterprise Library comes with the Configuration Utility that helps you manage the properties and behaviors of each application block.  Like for the Data Access Application Block the utility helps you manage things like connection strings so that when you are using the Data Access Application Block methods you don't need to worry about remembering the connection string etc.  The Configuration tool also let's use manage multiple sets of configuration so you could from a single place manage your development strings, testing string and production strings from one place.  Even better it's integrated into Visual Studio so you don't have to switch out to make changes,  I'll show this in action during the Data Access Application Block demo in the next post.

Application Blocks

Before I go on to with the next post with a walkthrough of the Data Access Application Block, I wanted to give you a break down of all the blocks that the Enterprise Library comes with and what they do.

Data Access Application Block - This block streamlines the process of all things related to data access...get records, put records etc.

Caching Application Block -  This one allows you incorporate caching techniques easily.

Cryptography Application Block - This one helps you incorporate encryption methods into your application.

Exception Handling Application Block - Allows you to define consistent error handling techniques through your application.

Logging Application Block - A set of procedures to allow you to quickly and easily implement standarized logging routines into you application.

Security Application Block - Use this to incorporate security and security caching into your application. (I took that almost directly from the documentation because I've never looked at it and I currently don't see what it gives you that the Membership Provider doesn't.  I'll do a write up on this one eventualy.)

Validation Application Block - This is a business object one.  With this you can incorporate a standardized set of rules checking much like in Rocky Lhotka's CSLA

Policy Injection Application Block - This one I know almost nothing about so I'll cut and paste the description from the documentation: "Developers can use this application block to implement interception policies that can be used to streamline the implementation of common features, such as logging, caching, exception handling, and validation, across an application."  (This one will definately be examined closer in future posts.)

Conclusion 

The Enterprise Library WILL make your life easier once you embrace and grasps it's concepts.  This week I will be writing an article with a quick "how-to" on the Data Access Application Block, and then I will be following that up with a write up on the Logging Application Block.  As always if you want to see anything in these articles drop me a line at ryan@file-new.com.
 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Enterprise Library

Welcome to file-new.com!

by Ryan 7. December 2007 01:00

Hi, I'm Ryan Smith.  Your average everyday .Net developer.  As a lead developer (frequently the only developer) I've often had to research new technology and techniques, and then implement them.  What I want to try to do with this blog is cut through some of the technical mumbo jumbo and get down to brass tacks.  I will try to present a technology in a way that makes sense, entertaining and with any luck informative.  As I tackle a subject I will start with a brief post describing the technology so that you can get a better understanding of the concepts in the technology before I go on to some simple examples using that technology.  Many tech blogs seem to start with an assumption of familiarity while these blogs are great and I wouldn't change them for the world, I've found that often what a developer needs is a more basic primer.  So hopefully I can provide that for you.

With any luck you'll come away from the blog series with a better grasp of the concepts behind the technology, and a stepping stone to using the technology in your own projects.

If you have any suggestions for topics you'd like to read about, drop me a line.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

General

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

Foo de Fa Fa

RecentPosts