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]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
>
>
> --
> Fabio Maulo
>
>


-- 
Fabio Maulo

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