The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'property?

Up vote 0 down vote favorite share g+ share fb share tw.

The hbm file is: The Employee. Cs: namespace EMSApplication. Domain { public class Employee : IEmployee { private string username; private string firstname; public virtual string Firstname { get { return firstname; } set { firstname = value; } } public virtual string Username { get { return username; } set { username = value; } } } } And this is the IEmployee.

Cs: namespace EMSApplication. Domain { interface IEmployee { string Firstname { get; set; } string Username { get; set; } } } Now I am getting the exception: The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'property' in namespace 'urn:nhibernate-mapping-2.2'. List of possible elements expected: 'meta, subselect, cache, synchronize, comment, tuplizer, id, composite-id' in namespace 'urn:nhibernate-mapping-2.2'.

I am using Spring. Net with NHibernate. The invocation of the hbm file is: assembly://EMSApplication/EMSApplication.

Domain/EMSApplication.hbm. Xml The project structure is: Any help will be very helpful. Thanks.

C# nhibernate hbm link|improve this question asked Mar 19 at 18:41Tapas Bose1,826524 84% accept rate.

You are missing the id element, which comes before all properties in the schema.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions