Search Results

Search found 3 results on 1 pages for 'reggieboyyeah'.

Page 1/1 | 1 

  • NHibernate Projection Components

    - by reggieboyYEAH
    Hello guys im trying to hydrate a DTO using projections in NHibernate this is my code IList<PatientListViewModel> list = y.CreateCriteria<Patient>() .SetProjection(Projections.ProjectionList() .Add(Projections.Property("Birthdate"), "Birthdate") .Add(Projections.Property("Doctor.Id"), "DoctorId") .Add(Projections.Property("Gender"), "Gender") .Add(Projections.Property("Id"), "PatientId") .Add(Projections.Property("Patient.Name.Fullname"), "Fullname") ) .SetResultTransformer(Transformers.AliasToBean<PatientListViewModel>()) .List<PatientListViewModel>(); this code is throwing an exception? anyone know what is the problem? here is the error message Message: could not resolve property: Patient.Name.Fullname of: OneCare.Domain.Entities.Patient

    Read the article

  • C# calculate accurate age

    - by reggieboyYEAH
    Hello guys, anyone know how to get the age based on a date(birthdate) im thinking of something like this string age = DateTime.Now.GetAccurateAge(); and the output will be some thing like 20Years 5Months 20Days

    Read the article

1