v2.5, SS, SQL Server 2000
This works and creates the proper select statement with all fields:
Dim x As New Weld.ORM.EntityClasses.WeldSpec_DetailEntity(o.AssyID, o.PartID)
x.PartId = o.PartID
x.AssyId = o.AssyID
x.Qty = o.Quantity
x.Thickness = o.Thickness
x.IsDirty = True
x.IsNew = True
x.Save()
This fails:
Dim x As New Weld.ORM.EntityClasses.WeldSpec_DetailEntity(o.AssyID, o.PartID)
x.Qty = o.Quantity
x.Thickness = o.Thickness
x.IsDirty = True
x.IsNew = True
x.Save()
In the second case it is not using PartId and AssyId in the insert statement (they are concatenated primary key) so I am getting an error on the save method, but you can still see I am passing in AssyID and PartID in the constructor.