Hi,
I would like to use IBATIS for .Net with classes which
has only public fields instead of setters and getters.
Namely,
Rather than private fields and public properties:
private string _FirstName;
public string FirstName
{
get { return _FirstName; }
set { _FirstName = value; }
}
I just have
public string FirstName;
I tried with the hello world samples and it does not
work (complaining that it can not found setters).
Here is my suggestion in how to add support for public
fields
starting from:
<result property="FirstName" column="PER_FIRST_NAME"
/>
add support for:
<result field="FirstName" column="PER_FIRST_NAME" />
That will be really cool.
Thanks a lot.
Ling