you're right, i'll have to explain better:
given this class:
public class Entity
{
private Guid _id;
private string _name;
/*nh ctor*/ protected Entity() {}
public Entity(Guid id, string name)
{
_id = id;
_name = name;
}
}
i'd like to use conform to get this mapping:
<?xml version="1.0"?>
<hibernate-mapping
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:nhibernate-mapping-2.2"
namespace="Ebe.Tests"
assembly="Ebe.Tests">
<class name="Entity">
<id name="_id"
unsaved-value="00000000-0000-0000-0000-000000000000"
access="field">
<generator class="assigned" />
</id>
<property name="_name" access="field" />
</class>
</hibernate-mapping>
thx
On 24 Feb., 16:35, Fabio Maulo <
fabioma...@gmail.com> wrote:
> what you mean?
> With those "...." my answer could be:
> Yes, for sure, if you do ... and then ... you have the result you are
> looking for.
>
> On Thu, Feb 24, 2011 at 12:24 PM, schlachtzeuger
> <
schlachtzeu...@gmail.com>wrote:
>
>
>
>
>
> > Hi,
>
> > i'd like to map fields directly with conform. eg
>
> > public class MyClass
> > {
> > private string _field0ToMap;
> > private string _field1ToMap;
> > .
> > .
> > .
> > }
>
> > Is this possible? How?
>
> > Regards
> > Andy
>
> --
> Fabio Maulo- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -