Click here to Skip to main content
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 2: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 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 8 Jul 2011
Copyright © CodeProject, 1999-2014
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