示例#1
0
        public SurveyInputItemBuilder <TEntity> SetInputType(SurveyInputType inputType)
        {
            string enumName = Enum.GetName(typeof(SurveyInputType), inputType);

            if (enumName != null)
            {
                _item.InputType = enumName.ToLowerInvariant();
            }
            return(this);
        }
 public SurveyPageBuilder <TEntity> AddSingleInput <TProperty>(Expression <Func <TEntity, TProperty> > expression, string title, string placeholder, SurveyInputType inputType)
 {
     return(AddSingleInput(expression,
                           x => x.HasTitle(title)
                           .HasPlaceHolder(placeholder)
                           .SetInputType(inputType)));
 }