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>();

Last edited Jun 11, 2012 at 4:01 AM by MadHatter22, version 4