コード例 #1
0
        public void SetProperty <TType>(string propertyName, Func <TEntity, TType> setterFunc)
        {
            TemporarypropertyHolder holder = new TemporarypropertyHolder();

            holder.propertyName     = propertyName;
            holder.propertyFunction = t => t.SetPropertyValue(propertyName, setterFunc(t));
            _tempPrpertyHolder.Add(holder);
        }
コード例 #2
0
        public void SetPropertyExpression(string propertyName, string valueExpression)
        {
            TemporarypropertyHolder holder = new TemporarypropertyHolder();

            holder.propertyName       = propertyName;
            holder.propertyexpression = valueExpression;


            _tempPrpertyHolder.Add(holder);
        }
コード例 #3
0
        internal void SetAction(Action <TEntity> action)
        {
            Func <TEntity, bool> actionProp = t =>
            {
                action(t);
                return(true);
            };
            TemporarypropertyHolder holder = new TemporarypropertyHolder();

            holder.propertyName     = actionpropertyName;
            holder.propertyFunction = actionProp;
            _tempPrpertyHolder.Add(holder);
        }