示例#1
0
 public EmployeeType(ICertificaationRepository certificationRepository)
 {
     Field(a => a.Id);
     Field(a => a.Name);
     Field(a => a.Email);
     Field(a => a.Mobile);
     Field(a => a.Company).Description("Company Name");;
     Field(a => a.Address);
     Field(a => a.ShortDescription);
     Field(a => a.LongDescription);
     Field <ListGraphType <EmployeeCertificationType> >(
         "certifications",
         resolve: context => certificationRepository.GetCertificationByEmployee(context.Source.Id)
         );
 }