| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace SqlSugar
- {
- public interface IConditionalModel {
- }
- public class ConditionalCollections : IConditionalModel
- {
- public List<KeyValuePair<WhereType, ConditionalModel>> ConditionalList { get; set; }
- }
- public class ConditionalTree : IConditionalModel
- {
- public List<KeyValuePair<WhereType, IConditionalModel>> ConditionalList { get; set; }
- }
- public class ConditionalModel: IConditionalModel
- {
- public ConditionalModel()
- {
- this.ConditionalType = ConditionalType.Equal;
- }
- public string FieldName { get; set; }
- public string FieldValue { get; set; }
- public string CSharpTypeName { get; set; }
-
- public ICustomConditionalFunc CustomConditionalFunc { get; set; }
- public object CustomParameterValue { get; set; }
- public ConditionalType ConditionalType { get; set; }
- [Newtonsoft.Json.JsonIgnoreAttribute]
- public Func<string,object> FieldValueConvertFunc { get; set; }
- public static List<IConditionalModel> Create(params IConditionalModel[] conditionalModel)
- {
- return conditionalModel.ToList();
- }
- }
- }
|