Auto Class Map
You can map your classes by convention if your property names match the attribute names in the directory. All properties with a public getter and setter will be mapped. You can optionally configure your own auto mapping class from
Directory Mapper.
public class Role
{
public string DistinguishedName { get; set; }
public string Cn { get; set; }
public Guid ObjectGuid {get; set; }
public string[] Members { get; set; }
}
var mapping = new AutoClassMap<Role>();