Pascal Belaud [MSFT]OlyMars: SQL Server Centric .NET Code GeneratorBug corrected in "Business Component Layer" AddOn- June 27, 2004 A bug was discovered by one of the OlyMars users (thanks to Benoit Fouletier). This bug is related to the "Business Component Layer" AddOn. Let's say that we have a Product table related to a Category table; let's say the foreign key CategoryID in the Product table is NOT mandatory. If, for a given record, CategoryID is Null, incorrect behavior occurs in the Product class: Product myProduct = new Product("...", myProductID) if (myProduct.CategoryID.IsNull) string...http://blogs.msdn.com/olymars/archive/2004/06/27/167122.aspx How to change the default namespaces used by OlyMars during code generation- June 12, 2004 OlyMars uses the SQL Server 2000 extended properties (read this for more information on Extended Properties) to store various metadata, among them, the namespaces to use during code generation. You can now edit the default values directly from the "BuiltIn Templates" AddIn. As a consequence, those values are not going to be asked anymore during the first generation as it was the case before.http://blogs.msdn.com/olymars/archive/2004/06/12/154192.aspx OlyMars object model has been updated- June 12, 2004 Six new properties have been added to both the Table and Column objects. Column object: IsPrimaryOnlyKey: Returns True if the column is a primary key and not also a foreign key IsForeignOnlyKey: Returns True if the column is a foreign key and not also a primary key Table object: HasPrimaryOnlyKey: Returns True if the table has at least one primary key that is not also a foreign key PrimaryOnlyKeys: Returns the primary keys collection that are not also foreign keys of the current...http://blogs.msdn.com/olymars/archive/2004/06/11/153870.aspx New features in the "TreeNode Factory" AddOn- June 9, 2004 I have posted a new build with some enhancements and bug fixes. New features have been added to the "TreeNode Factory" AddOn (be sure to reimport the new version of this add-on into your repository). Note that you should be familiar with this AddOn before reading this. If this is not the case, you can take a look at the documentation:<OlyMars directory>AddOnsTreeNodeFactoryDocumentation.mht Let's say that we have the following scenario:- We would like to add a parent node named...http://blogs.msdn.com/olymars/archive/2004/06/09/151507.aspx Transaction support in the "Business Component Layer" AddOn- June 8, 2004 I have posted a new build with some enhancements and bug fixes. A new enhancement is the transaction support that was added to the "Business Component Layer" Add-On (be sure to reimport the new version of this Add-On into your repository). Here is an example of code: Database--------------------------------------------------------------------CREATE DATABASE DemoBC ( CREATE TABLE Category ( CategoryID uniqueidentifier -> ID CategoryName varchar (255), ->...http://blogs.msdn.com/olymars/archive/2004/06/08/150611.aspx |