示例#1
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddBetween(IRoleType role, object firstValue, object secondValue)
 {
     this.CheckUnarity();
     this.predicate = new RoleBetween(this.extent, role, firstValue, secondValue);
     this.extent.Invalidate();
     return this;
 }
示例#2
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddAnd()
 {
     this.CheckUnarity();
     this.predicate = new And(this.extent);
     this.extent.Invalidate();
     return (ICompositePredicate)this.predicate;
 }
示例#3
0
文件: Not.cs 项目: whesius/allors
        public ICompositePredicate AddContainedIn(IRoleType role, Allors.Extent containingExtent)
        {
            this.CheckUnarity();
            if (role.IsMany)
            {
                this.predicate = new RoleManyContainedInExtent(this.extent, role, containingExtent);
            }
            else
            {
                this.predicate = new RoleOneContainedInExtent(this.extent, role, containingExtent);
            }

            this.extent.Invalidate();
            return this;
        }
示例#4
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddLike(IRoleType role, string value)
 {
     this.CheckUnarity();
     this.predicate = new RoleLike(this.extent, role, value);
     this.extent.Invalidate();
     return this;
 }
示例#5
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddLessThan(IRoleType role, object value)
 {
     this.CheckUnarity();
     this.predicate = new RoleLessThan(this.extent, role, value);
     this.extent.Invalidate();
     return this;
 }
示例#6
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddInstanceof(IAssociationType association, IComposite type)
 {
     this.CheckUnarity();
     this.predicate = new AssociationInstanceOf(this.extent, association, type);
     this.extent.Invalidate();
     return this;
 }
示例#7
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddInstanceof(IRoleType role, IComposite type)
 {
     this.CheckUnarity();
     this.predicate = new RoleInstanceof(this.extent, role, type);
     this.extent.Invalidate();
     return this;
 }
示例#8
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddContainedIn(IAssociationType association, IEnumerable<IObject> containingEnumerable)
 {
     this.CheckUnarity();
     this.predicate = new AssociationContainedInEnumerable(this.extent, association, containingEnumerable);
     this.extent.Invalidate();
     return this;
 }
示例#9
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddExists(IAssociationType association)
 {
     this.CheckUnarity();
     this.predicate = new AssociationExists(this.extent, association);
     this.extent.Invalidate();
     return this;
 }
示例#10
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddExists(IRoleType role)
 {
     this.CheckUnarity();
     this.predicate = new RoleExists(this.extent, role);
     this.extent.Invalidate();
     return this;
 }
示例#11
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddEquals(IAssociationType association, IObject allorsObject)
 {
     this.CheckUnarity();
     this.predicate = new AssociationEquals(this.extent, association, allorsObject);
     this.extent.Invalidate();
     return this;
 }
示例#12
0
文件: Not.cs 项目: whesius/allors
        public ICompositePredicate AddEquals(IRoleType role, object obj)
        {
            this.CheckUnarity();
            if (role.ObjectType is IUnit)
            {
                this.predicate = new RoleUnitEquals(this.extent, role, obj);
            }
            else
            {
                this.predicate = new RoleCompositeEqualsValue(this.extent, role, obj);
            }

            this.extent.Invalidate();
            return this;
        }
示例#13
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddEquals(IObject allorsObject)
 {
     this.CheckUnarity();
     this.predicate = new Equals(allorsObject);
     this.extent.Invalidate();
     return this;
 }
示例#14
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddContains(IAssociationType association, IObject containedObject)
 {
     this.CheckUnarity();
     this.predicate = new AssociationContains(this.extent, association, containedObject);
     this.extent.Invalidate();
     return this;
 }
示例#15
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddContains(IRoleType role, IObject containedObject)
 {
     this.CheckUnarity();
     this.predicate = new RoleContains(this.extent, role, containedObject);
     this.extent.Invalidate();
     return this;
 }
示例#16
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddInstanceof(IComposite type)
 {
     this.CheckUnarity();
     this.predicate = new Instanceof(type);
     this.extent.Invalidate();
     return this;
 }
示例#17
0
文件: Not.cs 项目: whesius/allors
        public ICompositePredicate AddContainedIn(IRoleType role, IEnumerable<IObject> containingEnumerable)
        {
            this.CheckUnarity();
            if (role.IsMany)
            {
                this.predicate = new RoleManyContainedInEnumerable(this.extent, role, containingEnumerable);
            }
            else
            {
                this.predicate = new RoleOneContainedInEnumerable(this.extent, role, containingEnumerable);
            }

            this.extent.Invalidate();
            return this;
        }
示例#18
0
文件: Not.cs 项目: whesius/allors
 public ICompositePredicate AddContainedIn(IAssociationType association, Allors.Extent containingExtent)
 {
     this.CheckUnarity();
     this.predicate = new AssociationContainedInExtent(this.extent, association, containingExtent);
     this.extent.Invalidate();
     return this;
 }