So far I was mostly writing my table-column definitions mapping so they look similar to the Linq2SQL style.
eg Linq2SQL
private Nullable<int> _MyColumn;
[Column( Name = "MyColumn", Storage = "_MyColumn", DbType = "int", CanBeNull = true )]
public Nullable<int> MyColumn { get { return _MyColumn; } set { _MyColumn= value; } }
BLToolkit
private Nullable<int> _MyColumn;
[MapField( "MyColumn", Storage = "_MyColumn" )]
public Nullable<int> MyColumn { get { return _MyColumn; } set { _MyColumn= value; } }
It's not really a problem I think, it's just that now I don't know is all this attributes really needed for BLToolkit. Do I need member field _MyValue, or attribute Storage?
Most examples on the BLToolkit wiki site just use the following style to define table columns
[MapField( "MyColumn" )]
public Nullable<int> MyColumn { get; set; }
So my question is. Do I need to use private setter within BLToolkit?
Is there any performance issues with or without it?