Hi I got a dbml file, that starts to add a 1 to the end of a EntitySet name Is there any way I can permanently fix this? If I change it in the designer file, its just returns when the file is updatet.
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Product_CompositeProduct", Storage="_CompositeProducts1", ThisKey="ProductNo", OtherKey="ParentID")]
public EntitySet<CompositeProduct> CompositeProducts1
{
get
{
return this._CompositeProducts1;
}
set
{
this._CompositeProducts1.Assign(value);
}
}
I could just change the rest of my code, but I don't like to have 1 in the name.
It seems that you already have property called CompositeProducts, and that's why it adds 1 at the end of entity set. it will add 2 the next time.