DLINQ and mapping specification for cascade on delete
Hello,
I'm using Orcas June CTP 2007 and DLINQ.
I'm trying to specify an "cascade on delete" in the mapping...
[Association(Storage ="m_loMeasures", OtherKey ="ParentDeviceId")]
[
Table(Name ="CDevice")]publicclassCDevice{
privateEntitySet<CMeasure> m_loMeasures;...
Association(Storage ="m_loMeasures", OtherKey ="ParentDeviceId")]publicEntitySet<CMeasure> Measures[
{
get {returnthis.m_loMeasures; }set {this.m_loMeasures.Assign(value); }
}
...
}
[
Table(Name ="CMeasure")]publicclassCMeasure{
privateEntityRef<CDevice> m_oParentDevice;privateint m_iParentDeviceId;[Column(Storage ="m_iParentDeviceId", DBType ="int")]publicint ParentDeviceId...
{
get {returnthis.m_iParentDeviceId; }set {this.m_iParentDeviceId =value; }
}
Association(Storage ="m_oParentDevice", ThisKey ="ParentDeviceId")]publicCDevice ParentDevice[
{
get {returnthis.m_oParentDevice.Entity; }set {this.m_oParentDevice.Entity =value; }
}
...
}
I thought that we should use theDeleteRule="CASCADE"attribute, but I doesn't exist ?
So how can I specify the cascade on delete with the code ?
Thanks

