Пример #1
0
        /// <summary>
        /// Registers a JSON field for the model.
        /// </summary>
        protected JsonFieldConverter AddJsonField(string jsonFieldName, ModelProperty modelProperty, IConverter converter, JsonFieldType type)
        {
            var field = new JsonFieldConverter(jsonFieldName, modelProperty, converter, type);

            _jsonFields.Add(field);
            return(field);
        }
Пример #2
0
        /// <summary>
        /// Registers a JSON field for the model.
        /// </summary>
        protected JsonFieldConverter AddJsonField(string jsonFieldName, ModelProperty modelProperty)
        {
            var field = new JsonFieldConverter(jsonFieldName, modelProperty);

            _jsonFields.Add(field);
            return(field);
        }
Пример #3
0
 /// <summary>
 /// Registers a JSON field for the model.
 /// </summary>
 protected void AddJsonField(JsonFieldConverter field)
 {
     _jsonFields.Add(field);
 }