David,
Thank you very much for pointing out the issue of inherit Id from
Entity class! It works now if I remove public virtual int Id { get;
protected set; } from my Vendor class.
public class Vendor : Entity
{
public Vendor() { }
public Vendor(string vendor_name) {
Vendor_Name = vendor_name;
}
[DomainSignature]
[NotNullNotEmpty]
public virtual string Vendor_Name { get; protected set; }
}
Best Regards
Li Aishen
On Dec 15, 8:39 am, "David R. Longnecker" <[email protected]>
wrote:
> Check the Entity class you are inheriting from--as mentioned before, I think
> it already implemented a public int property called Id. Since you're
> explicitly adding another, it may be because it's overriding some part of
> S#arpArch.
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en.