AutoMapper that used used to create the relationship in the case for a One To Many Relationship.
        /// <summary>
        /// Map this property to a Relationship definition based on its Defintiion
        /// </summary>
        /// <param name="propertyWrapper"></param>
        /// <returns></returns>
        public static IRelationshipDef MapOneToMany(this PropertyWrapper propertyWrapper)
        {
            if (propertyWrapper == null) return null;
            var autoMapper = new OneToManyAutoMapper(propertyWrapper);

            return autoMapper.MapOneToMany();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Map this property to a Relationship definition based on its Defintiion
        /// </summary>
        /// <param name="propertyWrapper"></param>
        /// <returns></returns>
        public static IRelationshipDef MapOneToMany(this PropertyWrapper propertyWrapper)
        {
            if (propertyWrapper == null)
            {
                return(null);
            }
            var autoMapper = new OneToManyAutoMapper(propertyWrapper);

            return(autoMapper.MapOneToMany());
        }