I've got the same problem...and couldn't find a solution either.
However, I have some information for people that are looking into this:
When ChildProperty
is set to false, the .designer.cs
file is changed (instead of the .dbml
/.dbml.layout
ones). Here's an example...
ChildProperty=true
:
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="bank_account_bank_payment_file", Storage="_bank_account", ThisKey="company_bank_account_id", OtherKey="bank_account_id", IsForeignKey=true)]
public bank_account bank_account
{
get
{
return this._bank_account.Entity;
}
set
{
bank_account previousValue = this._bank_account.Entity;
if (((previousValue != value)
|| (this._bank_account.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._bank_account.Entity = null;
previousValue.bank_payment_files.Remove(this);
}
this._bank_account.Entity = value;
if ((value != null))
{
value.bank_payment_files.Add(this);
this._company_bank_account_id = value.bank_account_id;
}
else
{
this._company_bank_account_id = default(int);
}
this.SendPropertyChanged("bank_account");
}
}
}
ChildProperty=false
:
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="bank_file_handler_bank_payment_file", Storage="_bank_file_handler", ThisKey="bank_file_handler_id", OtherKey="bank_file_handler_id", IsForeignKey=true)]
[global::System.Runtime.Serialization.DataMemberAttribute(Order=17, EmitDefaultValue=false)]
public bank_file_handler bank_file_handler
{
get
{
if ((this.serializing
&& (this._bank_file_handler.HasLoadedOrAssignedValue == false)))
{
return null;
}
return this._bank_file_handler.Entity;
}
set
{
if ((this._bank_file_handler.Entity != value))
{
this.SendPropertyChanging();
this._bank_file_handler.Entity = value;
this.SendPropertyChanged("bank_file_handler");
}
}
}