/// <summary> /// 从对应属性进行填充 /// </summary> /// <param name="attr"></param> protected internal override void FillFromAttr(ConditionMappingAttributeBase attr) { base.FillFromAttr(attr); ConditionMappingAttribute cmAttr = (ConditionMappingAttribute)attr; this.operation = cmAttr.Operation; this.template = cmAttr.Template; this.escapeLikeString = cmAttr.EscapeLikeString; }
private static void FillMappingItemByAttr(ConditionMappingItem item, ConditionMappingAttribute fm) { item.DataFieldName = fm.DataFieldName; item.Operation = fm.Operation; item.IsExpression = fm.IsExpression; item.EnumUsage = fm.EnumUsage; item.Prefix = fm.Prefix; item.Postfix = fm.Postfix; item.AdjustDays = fm.AdjustDays; item.Template = fm.Template; item.EscapeLikeString = fm.EscapeLikeString; }
private static void FillMappingItemByAttr(ConditionMappingItem item, ConditionMappingAttribute fm) { item.DataFieldName = fm.DataFieldName; item.Operation = fm.Operation; item.IsExpression = fm.IsExpression; item.EnumUsage = fm.EnumUsage; item.Prefix = fm.Prefix; item.Postfix = fm.Postfix; item.AdjustDays = fm.AdjustDays; item.Template = fm.Template; item.EscapeLikeString = fm.EscapeLikeString; }