Thanks Fabio... :-)
i will changes my structure

On Jun 3, 9:06 pm, Fabio Maulo <[email protected]> wrote:
> For that reason I said "you need" and not "you can".
> <any> mean *any-entity* and *not* any-class
> entity = any System.Type mapped using <class> or <subclass> or
> <joined-subclass>
>
>
>
>
>
> On Thu, Jun 3, 2010 at 12:57 PM, Vels <[email protected]> wrote:
> > me not having seperate class/table for PatientType = 'Out'
> > it just string,i tat to save in the same field, so i declared as
> > string in my table
>
> > (sorry if my structure is wrong)
>
> > On Jun 3, 8:50 pm, Fabio Maulo <[email protected]> wrote:
> > > sorry, perhaps
> > > public class PatientName: BaseEntity, IPatient
> > > {
> > > public virtual string FullName {get;set;}
>
> > > }
> > > On Thu, Jun 3, 2010 at 12:49 PM, Fabio Maulo <[email protected]>
> > wrote:
> > > > You need an entity
> > > > public class PatientName: BaseEntity
> > > > {
> > > > public virtual string FullName {get;set;}
> > > > }
>
> > > > On Thu, Jun 3, 2010 at 12:42 PM, Vels <[email protected]> wrote:
>
> > > >>   Hi..,
> > > >>   Help me, how to map for the bellow requirement..
> > > >>   i have DailyVisiters class,in that i have IPatient <any>
> > > >> property
>
> > > >>    If PatientType = 'In'  then  save PatientMasterID and load
> > > >> PatientMaster object
> > > >>    if PatientType = 'Out' then save/Get PatientName (which is not
> > > >> exist in  PatientMasterList, just a string which user entered)
>
> > > >>    tblDailyVisiters:
> > > >>    Id numeric(18,0)     identity(1,0) not nul (PK)
> > > >>    AppointmentCode Numeric(18,0) not nul (FK)
> > > >>    InTime DateTime
> > > >>    PatientType    String     not nul        =    (In/Out)
> > > >>    Patient            String     Not Null
>
> > > >>    Mapping Is :
> > > >>    <any name='IPatient' meta-type='System.String' id-
> > > >> type='<----???----'>
> > > >>      <meta-value class='BO.PatientMaster, BO' value='In'/>
> > > >>      <meta-value class=<----???-------> value ='Out'/>
> > > >>      <column name='PatientType'/>
> > > >>      <column name='Patient'/>
> > > >>    </any>
>
> > > >> sorry i am wrong..
>
> > > >> Environment
> > > >> NH Version : 2.1.0.1002
> > > >> VB.Net 3.5 (win & wpf)
> > > >> SQL 2005 (legacy database, nearly 125 tables)
>
> > > >> --
> > > >> 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]<nhusers%[email protected]­>
> > <nhusers%[email protected]<nhusers%252bunsubscr...@googlegroup­s.com>
> > ­>
> > > >> .
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/nhusers?hl=en.
>
> > > > --
> > > > Fabio Maulo
>
> > > --
> > > Fabio Maulo- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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]<nhusers%[email protected]­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> Fabio Maulo- Hide quoted text -
>
> - Show quoted text -

-- 
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