Introducing Versatile DataSources

Last post 12-19-2009 2:04 PM by PLBlum. 1 replies.

Sort Posts:

  • Introducing Versatile DataSources

    11-04-2009, 5:16 PM
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 9:20 AM
    • Boston, MA
    • Posts 5,344

    Versatile DataSources contains two DataSource controls that support Dynamic Data and establish a strong separation of concerns between UI and business logic. EntityDAODataSource improves upon the ideas behind the DomainDataSource. POCODataSource lets you work with POCO classes.

    EntityDAODataSource Features

    • For use with Data Access Objects ("DAO") that handle the CRUD ("create, read, update, delete") actions. Starter DAO classes are supplied for ADO.NET, LINQ to SQL, and ADO.NET Entity Framework. They already predefine the following methods: Update, Insert, Delete, SelectAll, SelectOne (by primary key), and Select (query by the filtering properties on the EntityDAODataSource). Your existing DAO classes can be used as well.
    • Defines strong separation of concerns between user interface and business logic, letting the business logic dictate everything possible. The web control developer only identifies the Entity class, Select method, and the Select method parameters. (Even the Select method and its parameters are optional as in many cases EntityDAODataSource can figure them out.)
    • Supports Dynamic Data. Introduces ADO.NET support to Dynamic Data.
    • Provides a mechanism for paging, sorting, filtering, and caching, which is delegated to the Select methods on the DAO classes. The supplied DAO classes already implement all of these capabilities.
    • Select methods are simpler to setup. They are always passed the SelectArgs object which passes in paging, sorting, filtering, and caching information. Select methods only need to create their query, consuming the sorting and filtering data. Then pass both the query and the SelectArgs object to the ExecuteSelectCommand for execution where paging and caching are applied.
    • Supports the DynamicFilter and QueryableFilterRepeater controls without using the QueryExtender control.
    • Supports Dynamic Data’s Url Routing to determine the table, action (read, edit, insert), and record. You don’t have to setup any Parameter objects in SelectParameters or WhereParameters properties.
    • Supports Associations (relationships) defined by Dynamic Data and used by Url Routing.
    • Provides design mode support, including a Configure command and editors for its SelectParameters, WhereParameters, and FilterExpressions properties.

    POCODataSource Features

    • For any data entry form that takes an action based on the data input.
    • For use with the POCO class intended to run an action. Eliminates the middle step of transferring data from an intermediate form to the final object by handling two way databinding directly with the POCO instance.
    • Populates the properties of objects automatically. You can just invoke their “action method”.
    • Supports Dynamic Data. Apply the attributes of System.ComponentModel.DataAnnotations to your POCO class and let Dynamic Data construct a matching user interface complete with validation. Allows separation of concerns design where the business logic dictates how to build the user interface.
    • Very simple setup. Either assign the POCO class type to the POCOTypeName property or use the CreatePOCOInstance event to return an instance of the object.
    • Provides design mode support
    Versatile DataSources is free and available on CodePlex, complete with extensive documentation, examples, and source code. This is the initial release and intended for feedback and early adapters.
    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Introducing Versatile DataSources

    12-19-2009, 2:04 PM
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 9:20 AM
    • Boston, MA
    • Posts 5,344

    Version 0.0.2 is now available. Release notes are found on this page:

    http://versatiledatasources.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=37509#ReleaseFiles

    I am looking for help building Data Access Object base classes to support NHibernate and LLBGen.

    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
Page 1 of 1 (2 items)