Hi Oskar,

Thanks for Reply.

I to create a collection class like : public class Level15: IList<Level15>
the populate object of Level15 collection and then pass the object to save
so that we would not require to iterate the object while saving.

Thanks,
H N MIshra




On 1 December 2011 12:51, Oskar Berggren <[email protected]> wrote:

> I'm somewhat confused. You say "collection of Level15" but the only
> collection I see is of DealerComm, owned by Level15. Is this the
> collection you are talking about? In that case it seems like what you
> want are the cascade settings.
>
> /Oskar
>
>
> 2011/12/1 H N Mishra <[email protected]>:
> > I have following class
> >
> > public class clLevel15
> > {
> >      public int RFID { get; set; }
> >      public string CUSIP { get; set; }
> >      public string Fund_Name { get; set; }
> >      public string Fund_CITY { get; set; }
> >      public IList<DealerComm> DealerCommission { get; set; }
> > }
> >
> > public class DealerComm
> > {
> >        public int RFID { get; set; }
> >        public string CUSIP { get; set; }
> >        public int period { get; set; }
> >       public double percentage { get; set; }
> > }
> >
> >  DB tables are as under : --
> >
> >  Create table  create table LEVEL15
> >      (   RFID      NUMBER not null,
> >         CUSIP     VARCHAR2(9) not null,
> >         FUND_NAME VARCHAR2(256),
> >         FUND_CITY VARCHAR2(256) )
> >       alter table LEVEL15   add constraint PK1 primary key (RFID,
> > CUSIP)
> >
> > create table DEALERCOMM (
> >        RFID       NUMBER not null,
> >        CUSIP      VARCHAR2(9) not null,
> >        PERIOD     NUMBER not null,
> >        PERCENTAGE NUMBER )
> > alter table DEALERCOMM   add constraint PK2 primary key (RFID, CUSIP,
> > PERIOD);
> >
> > Now i want to create a collection of Level15 and pass that collection
> > to save (without iterating).Can some one suggest to  mapping to save
> > the collection in one go?
> >
> > Thanks
> > H N Mishra
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "nhusers" 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/nhusers?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" 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/nhusers?hl=en.
>
>


-- 
Thanks and Regds,
H N Mishra
Mob:-09873066680

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to