Inconsistencies between NorthwindLib and Wizard-Generated Version

I'm seeing unexpected inconsistencies between the schema files of NorthwindLib and those generated by the Entity Data Model Wizard from NorthwindCTP.mdf.

SSDL: Wizard version has AssociationSets and Associations defined, NorthwindLib version doesn't.

CSDL: Wizard version is missing CustomerId Property of Orders EntityType; NorthwindLib version's Entitites have NavigationRoleProperties - Wizard's doesn't. Multiplicity attribute format differs. Wizard version is missing ConcurrencyMode="fixed" Property attribute.

MSL: Wizard version is missing CustomerID Property of Orders. All element tags and attribute names are qualified with p1; NorthwindLib attribute names are qualified with cdm (no big deal).

Which is the current/preferred version/style: Wizard-generated or NorthwindLib?

--rj

[842 byte] By [RogerJennings] at [2008-2-15]
# 1

It'll probably be a mix of both. NorthwindLib was created by hand mostly for historical reasons, so it doesn't follow the patterns that the automatic SSDL generator follows.

While you can expect that in general the generated files will look more like the ones generated automatically today, there are some elements missing in them currently that will be added either automatically or by request when generating models (e.g. navigation properties).

As for which one is the "preferred" style...we're not there yet, so I'd suggest to pick and choose the pieces that make your scenario work :)

Pablo Castro
ADO.NET Technical Lead
Microsoft Corporation

pablo-ms at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...

Visual Studio Orcas

Site Classified