Ejemplo n.º 1
0
        public IPropertyQuery JoinRef(IRefProperty property, Type propertyOwner = null)
        {
            if (propertyOwner == null)
            {
                propertyOwner = property.OwnerType;
            }

            if (_refItems == null)
            {
                _refItems = new List <RefTableProperty>(2);
            }

            if (_refItems.All(i => i.RefProperty != property.RefIdProperty || i.PropertyOwner != propertyOwner))
            {
                var item = new RefTableProperty(property.RefIdProperty, propertyOwner)
                {
                    JoinRefType = JoinRefType.JoinOnly
                };
                _refItems.Add(item);
            }

            return(this);
        }
Ejemplo n.º 2
0
        public IPropertyQuery JoinRef(IRefProperty property, Type propertyOwner = null)
        {
            if (propertyOwner == null) propertyOwner = property.OwnerType;

            if (_refItems == null) { _refItems = new List<RefTableProperty>(2); }

            if (_refItems.All(i => i.RefProperty != property.RefIdProperty || i.PropertyOwner != propertyOwner))
            {
                var item = new RefTableProperty(property.RefIdProperty, propertyOwner)
                {
                    JoinRefType = JoinRefType.JoinOnly
                };
                _refItems.Add(item);
            }

            return this;
        }