Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
		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;
		}