Linq2Mysql 1.00.2 beta - Visual Studio Code Analysis

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
[email protected]
Posts: 27
Joined: Mon 08 Sep 2008 16:37

Linq2Mysql 1.00.2 beta - Visual Studio Code Analysis

Post by [email protected] » Mon 27 Oct 2008 07:58

Hi,

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.
It refers to a relationship between two tables, this is the code:

Code: Select all

[Association(Name="Country_Ean", Storage="_Eans", OtherKey="Countryfk")]
public EntitySet Eans
{
	get
	{

		return this._Eans;
	}
	set
	{
		this._Eans.Assign(value);
	}
}
Can you please tell me what this is about ?

Should i supress these messages?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 30 Oct 2008 09:12

Please send us a test project to reproduce this message and a script that creates database objects.

[email protected]
Posts: 27
Joined: Mon 08 Sep 2008 16:37

Post by [email protected] » Fri 31 Oct 2008 11:19

It's not happening anymore (man... i really hate that!).

If it happens again i will.

Post Reply