コード例 #1
0
        protected void BaseAutoSet <T>(Expression <Func <TImplementor, T> > forProperty, T value)
        {
            var attrib = AnnotationQueryStructureBinder.GetAutoAttribute(forProperty);

            this.Attributes[attrib.Alias].DynamicValue = value;
        }
コード例 #2
0
        protected T BaseAutoGet <T>(Expression <Func <TImplementor, T> > fromProperty, T defaultValue = default(T))
        {
            var attrib = AnnotationQueryStructureBinder.GetAutoAttribute(fromProperty);

            return(this.Attribute <T>(attrib.Alias, defaultValue));
        }