Announcing dOOdads

All your dOOdad needs ...

Announcing dOOdads

Postby mike.griffin on Tue Mar 09, 2004 2:59 pm

This Friday, March 12th, MyGeneration will publish a new .NET Architecture known as dOOdads. MyGeneration can generate dOOdads from a Table or a View. dOOdads provide the ability to query on any column in your business entity. Using advanced SQL query statements via an intellisense API will really improve your overall performance. All of the data passed into the query is passed in via SqlParameter’s so no SQL injection worries here.

With a MyGeneration generated dOOdad you can easily perform the operation as shown below (having not yourself written a line of code to make the underlying code work)

Code: Select all
'VB.NET Syntax
Dim emp as Employee = new Employee

emp.Where.LastName.Op = Operator.Like
emp.Where.LastName.Value = \"%A%\"
emp.Where.Age.Value = 40
emp.Where.Age.Op = Operator.GreaterThan

emp.Query.Top = 5

' The default is all columns unless you explicitly set them
emp.Query.ResultColumnsAdd(Employee.Columns.LastName)
emp.Query.ResultColumnsAdd(Employee.Columns.FirstName)

emp.Query.AddOrderBy(Employee.Columns.LastName)

Emp.Query.Load()

This will load all Employees who have a 'A' in their last name and are over 40 years old. It will bring back only the LastName and FirstName columns, but only the first 5 records, finally it will order the rows by LastName. You will find you write very few stored procedures, when you modify your tables you have no stored procedures to manually maintain.

Like our current sample business objects, LoadAll(), LadByPrimaryKey(), AddNew() all still exist, along with the Save() logic and properties.

However, here are some of the new features:

    Seamless transaction support which will allow you to save any number of business entities within a single transaction (the business entities aren’t even aware of the transaction)

    Filter and Sort are fully supported on the business entities and enumeration of the collection respects the values you have set in both Filter and Sort.

    A few more goodies we’ll save for Friday.

On Friday the VB.NET architecture will be published, initially for SqlClient only. However, C# will follow within the following week. Access folks, we will have this solution for you soon as well.

Please post a note here if you plan to evaluate this new architecture.
Last edited by mike.griffin on Tue Mar 09, 2004 6:29 pm, edited 1 time in total.
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby sbc on Tue Mar 09, 2004 3:52 pm

What does dOOdads stand for? It sounds very good though and should save much coding.
User avatar
sbc
Expert
 
Posts: 446
Joined: Sat Apr 03, 2004 6:10 am
Location: North East Lincolnshire, England

Postby mike.griffin on Tue Mar 09, 2004 4:41 pm

dOOdads

Main Entry: doo·dad
Pronunciation: 'dü-\"dad
Function: noun

Etymology: origin unknown
1 : an ornamental attachment or decoration
2 : an often small article whose common name is unknown or forgotten : GADGET
    dOOdads decorate your tables with strongly typed accessors and other query mechanisms. A DataTable is a typeless beast, we overlay, or decorate the DataTable with a dOOdad.

    dOOdads are implemented with a very small amount of code and represent a lost and forgotten model which is simple code that works.

    dOOdads has \"OO\" in it's name, where OO is used because it makes sense, Encapsulation, Polymorphism, Inheritance.

Am I reaching here, or did we just choose it because it's cute?
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to dOOdads - MyGeneration's .NET Architecture

Who is online

Users browsing this forum: No registered users and 0 guests

cron