Friday, July 03, 2009
Enhanced Features
Minimize
These are some of the features that have been added since the first release.


DefaultCommandType
  1. DefaultCommandType allows for setting the method by which the EasyObject will conduct database operations. There are two settings: CommandType.StoredProcedure and CommandType.Text.
  2. CommandType.StoredProcedure instructs the EasyObject to use stored procedures. CommandType.Text instructs the EasyObject to generate dynamic SQL. 
  3. The DefaultCommandType can be set in the concrete class's constructor, so it becomes the default for that object.
  4. The Save method also has an overload that takes a CommandType, which will override the DefaultCommandType (but only for the Save operation).
  5. All database operations will execute within the current transaction scope, regardless of the CommandType setting.



IDENTITY Insert
  1. Allows the developer to specify a value for a column marked in the database as IDENTITY (in SQL Server) or using a SEQUENCE (in Oracle, which is support by EasyObjects).
  2. Typically used when transferring data from one database to another, or when adding static lookup data. 
  3. Always performed with a dynamic query, no stored procedure support at this time.



Aggregates
  1. Allows the developer to construct dynamic queries that contain aggregate functions.
  2. Supported functions are AVG, COUNT, MAX, MIN, SUM, STDEV and VAR, but can vary by database provider.


Last Updated: 01/23/2007

Print  

Privacy Statement  |  Terms Of Use
© 2007 Noonan Consulting Inc.