aocakli / mikrotik4net

Automatically exported from code.google.com/p/mikrotik4net
Other
0 stars 0 forks source link

Suport for property bindings #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Set of xxxxOrNull properties will be added.
Set of xxxxDefined properties will be added.

Original issue reported on code.google.com by daniel.f...@gmail.com on 26 Jun 2011 at 2:13

GoogleCodeExporter commented 9 years ago
I believe that problem is ONLY with R/O mandatory properties (e.q. 
FirewallAddressList.Dynamic). So this issue must be adressed (default values of 
R/O properties must be set but not used for Save).

What should be done:
1) support for default values in newly created intances of object
2) support for skiping these properties during save.
3) add verification after load/new, that all mandatory properties has been 
loaded/setToDefault.

I am right? Or is there another situation when binding could throw exception?

Original comment by daniel.f...@gmail.com on 26 Jun 2011 at 3:55

GoogleCodeExporter commented 9 years ago
I have just implement IList<TEntity> interface on list objects. I hope id does 
not hurt class design ...

Original comment by daniel.f...@gmail.com on 23 Jul 2011 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by daniel.f...@gmail.com on 23 Jul 2011 at 3:36

GoogleCodeExporter commented 9 years ago
Resolved:
1) R/O properties could be always nullable (and are on newly created instances)
2) R/O properties are ignored during save
3) XXXOrNull & XXXIsSet properties added for all mandatory properties (that 
could not be null)

Original comment by daniel.f...@gmail.com on 23 Jul 2011 at 8:46