What do I have to do so that a property will show at the datasource?
This is a windows forms question. forgive me if I explain what I do with too much detail but I asked with less detail before and it seems nobody read, because answers were completely off mark and I wasted bouty.
I have a Linq object called XX. It was created when I dropped my table on the .dbml file in visual studio.
Then, to make my interfaces easier to program I go to Data->Show Data Sources on visual Studio and create a object data source. All properties of the object appear at the data source.
But the linq class is partial, so i do:
partial class XX
{
private int _myValue;
public int myValue
{
get { return _myValue; }
set { _myValue = value; }
}
}
are you following so far ?
Then i go and recreate the object data source.
The property myValue does not show on t开发者_Go百科he data source.
I tried decoratin it like this:
[Bindable(true)]
public int myValue
to no avail. This usualy does the trick for "non-linq" Plain classes.
So, the question is: What do I have to do so my property will show at the data source ?
精彩评论