When i build my sollution with Code Analysis enabled (all options turned on except 'Naming rules', i very often see these kind of warnings:
Code: Select all
Warning 28 CA2227 : Microsoft.Usage : Change 'Country.Eans' to be read-only by removing the property setter.
Code: Select all
[Association(Name="Country_Ean", Storage="_Eans", OtherKey="Countryfk")]
public EntitySet Eans
{
get
{
return this._Eans;
}
set
{
this._Eans.Assign(value);
}
}
Should i supress these messages?