Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Using a Iset Collection in my code.
This gives me an error like this operation not supported in wcf.
I am using wcf test client inorder to test my methods.I am Using Nhibernate in my application to map.

User.hbm.xml

XML
<class name="User" table="user" dynamic-insert="true">
  <id name="Id" column="id">
    <generator class="identity"></generator>
  </id>
  <property name="FirstName" column="firstname" />
  <property name="LastName" column="lastname"  />
  <set  name="RoleList"   table="rolemapping" >
    <key column="id" />
    <many-to-many column="roleid"   class="Roles"  />
  </set>


User.cs

private ISet<Roles> roleList = new HashSet<Roles>();
C#
virtual public  int Id { get; set; }
        virtual public  string FirstName { get; set; }
        virtual public string LastName { get; set; }

C#
virtual public ISet<Roles> RoleList
      {
          get { return roleList; }
          set { roleList = value; }
      }


I want to fetch and insert values from/to user table using a link table role mapping.
I already tried everything with bag,ibag tags.But it didn't worked.
Is there any other way or please help me on this?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900