Habanero.Smooth.IdentityAutoMapper.GetPrimaryKeyDef C# (CSharp) Method

GetPrimaryKeyDef() private static method

Gets the Primary Key def from this ClassDef or one of its Super Class Defs
private static GetPrimaryKeyDef ( IClassDef classDef ) : IPrimaryKeyDef
classDef IClassDef
return IPrimaryKeyDef
        private static IPrimaryKeyDef GetPrimaryKeyDef(IClassDef classDef)
        {
            var primaryKeyDef = classDef.PrimaryKeyDef;
            if (primaryKeyDef == null && classDef.SuperClassDef != null)
            {
                primaryKeyDef = GetPrimaryKeyDef(classDef.SuperClassDef.SuperClassClassDef);
            }
            return primaryKeyDef;
        }