Hi All -
I just tried upgrading from .netTiers 2.2.0.603 to 2.2.0.732 today and ran into an issue where a TList Collection was not generated for a many to many relationship.
I am using CodeSmith 4.1.4 revision 3592 from the command line and my current DB schema (which has not been changed) worked just fine in 603, but now when I re-generated it's missing a TList Collection in the Children Collections region of the CustomerBase.generated.cs
Here's the schema that I am currently using - the join table has only two fields and uses a composite primary key as required by .netTiers.
Customer CustomerAccountMatrix Account
-------------- ----------------------------------- -------------
CustomerID PK --> CustomerID PK <-- AccountID PK
OtherFields AccountID PK OtherFields
I am expecting to see in CustomerBase.generated.cs
/// <summary>
/// Holds a collection of CustomerAccountMatrix objects
/// which are related to this object through the relation FK_CustomerAccountMatrix_Customer
/// </summary>
[System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
public virtual TList<CustomerAccountMatrix> CustomerAccountMatrixCollection
{
get { return entityData.CustomerAccountMatrixCollection; }
set { entityData.CustomerAccountMatrixCollection = value; }
}
but found this instead
/// <summary>
/// Holds a CustomerAccountMatrix object
/// which is related to this object through the relation CustomerAccountMatrix
/// </summary>
[System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
public virtual CustomerAccountMatrix CustomerAccountMatrix
{
get { return entityData.CustomerAccountMatrix; }
set { entityData.CustomerAccountMatrix = value; }
}
Hopefully someone can point me in the right direction, or even let me know what template to look at to trouble shoot this.
Thanks.
Doug