Click here to Skip to main content
11,705,208 members (50,332 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF NHibernate
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

<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>();
virtual public  int Id { get; set; }
        virtual public  string FirstName { get; set; }
        virtual public string LastName { get; set; }
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 8-Jul-11 1:54am
Vijayeb385

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 525
1 OriginalGriff 244
2 ppolymorphe 126
3 F-ES Sitecore 110
4 Andy Lanng 85
0 OriginalGriff 8,988
1 Sergey Alexandrovich Kryukov 8,272
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 8 Jul 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100