/// <summary> /// Automaps all the unique constrainst for the ClassType defined by the <paramref name="classDef"/> using reflection /// </summary> /// <param name="classDef"></param> /// <returns></returns> public static IList<IKeyDef> MapUniqueConstraints(this IClassDef classDef) { if (classDef == null) return new List<IKeyDef>(); UniqueConstraintAutoMapper autoMapper = new UniqueConstraintAutoMapper(classDef); return autoMapper.MapUniqueConstraints(); }
/// <summary> /// Automaps all the unique constrainst for the ClassType defined by the <paramref name="classDef"/> using reflection /// </summary> /// <param name="classDef"></param> /// <returns></returns> public static IList <IKeyDef> MapUniqueConstraints(this IClassDef classDef) { if (classDef == null) { return(new List <IKeyDef>()); } UniqueConstraintAutoMapper autoMapper = new UniqueConstraintAutoMapper(classDef); return(autoMapper.MapUniqueConstraints()); }