In LinqConnect in the "Model Naming" properties, I have everything unchecked for "Class and Method Names" and "Class Properties' Names". When the model is created it creates two associations, with names of "PosTransaction_PosTransItem1" and "PosTransaction_PosTransItem"
The following code is generated :
Code: Select all
[Devart.Data.Linq.Mapping.Association(Name="PosTransaction_PosTransItem", Storage="_PosTransItem_Fk_PosTransaction_Redeem", ThisKey="PosTransID", OtherKey="Fk_PosTransaction_Redeem", DeleteRule="NO ACTION")]
public EntitySet<PosTransItem> PosTransItem_Fk_PosTransaction_Redeem
{
get
{
return this._PosTransItem_Fk_PosTransaction_Redeem;
}
set
{
this._PosTransItem_Fk_PosTransaction_Redeem.Assign(value);
}
}
Code: Select all
[Devart.Data.Linq.Mapping.Association(Name="PosTransaction_PosTransItem1", Storage="_PosTransItem_PosTransID", ThisKey="PosTransID", OtherKey="PosTransID", DeleteRule="NO ACTION")]
public EntitySet<PosTransItem> PosTransItem_PosTransID
{
get
{
return this._PosTransItem_PosTransID;
}
set
{
this._PosTransItem_PosTransID.Assign(value);
}
}
Code: Select all
posTrans.PosTransItem.Where(p=> p......)
Code: Select all
posTrans.PosTransItem_PosTransID.Where(p=> p......)