Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public HasOneAssociation.Builder HasOneAssociation(HasOneAssociation.Config config)
        {
#if MVC
            return(new HasOneAssociation.Builder(new HasOneAssociation(config)
            {
                ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null
            }));
#else
            return(new HasOneAssociation.Builder(new HasOneAssociation(config)));
#endif
        }
 /// <summary>
 ///
 /// </summary>
 public Builder(HasOneAssociation.Config config) : base(new HasOneAssociation(config))
 {
 }
 /// <summary>
 ///
 /// </summary>
 public HasOneAssociation.Builder HasOneAssociation(HasOneAssociation.Config config)
 {
     return(new HasOneAssociation.Builder(new HasOneAssociation(config)));
 }