score:3

Accepted answer

I've dissected the results of the designer's generated code.

Step 1: Create a private member using the System.Data.Linq.Link type:

private System.Data.Linq.Link<String> _columnName;

Step 2: Set the Storage parameter of the Column attribute to this member name, and fill in the property getter and setters:

[Column(Name = "column_name", Storage = "_columnName"...]
public String ColumnName 
{
    get
    {
        return _columnName.Value;
    }
    set
    {
        _columnName.Value = value;
    }
}

Related Articles