Reference

This page will contain the latest version of our directory objects and ClassMaps.

List of objects

OrganizationalUnitObject

public class OrganizationalUnitObject : DirectoryObjectBase
    {
        public Guid objectGuid { get; set; }
        public String distinguishedName { get; set; }
        public String organizationalUnitName { get; set; }

        private string _description;
        public String description
        {
            get { return this._description; }
            set
            {
                if (value != this._description)
                {
                    this._description = value;
                    this.AttributeChanged<OrganizationalUnitObject, String>(a => a.description);
                }
            }
        }
        
        public DateTime whenCreated { get; set; }
        public DateTime whenChanged { get; set; }
    }
}

OrganizationalUnitObjectMap

public class OrganizationalUnitObjectMap : ClassMap<OrganizationalUnitObject>
    {
        public OrganizationalUnitObjectMap()
        {
            NamingContext("DC=big,DC=wooden,DC=badger");    // Insert your NC here
            ObjectClass("organizationalUnit");
            ObjectCategory("organizationalUnit");
            DistinguishedName(x => x.distinguishedName);

            Map(x => x.organizationalUnitName).Named("ou").StoreGenerated();
            Map(x => x.description);
            Map(x => x.objectGuid).StoreGenerated();
            Map(x => x.whenChanged).StoreGenerated();
            Map(x => x.whenCreated).StoreGenerated();
        }
    }

Back to the top.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: