Beispiel #1
0
        /// <inheritdoc />
        public IDataBinding CreateDataBinding()
        {
            if (DataBinding != null)
            {
                return(DataBinding);
            }

            DataBindingEntity dataBinding = LayerProperty.Entity.DataBindingEntities.FirstOrDefault(e => e.TargetExpression == PropertyExpression.ToString());

            if (dataBinding == null)
            {
                return(null);
            }

            DataBinding = new DataBinding <TLayerProperty, TProperty>(LayerProperty, dataBinding);
            return(DataBinding);
        }