当前位置: 首页>>代码示例>>C#>>正文


C# IRoleType类代码示例

本文整理汇总了C#中IRoleType的典型用法代码示例。如果您正苦于以下问题:C# IRoleType类的具体用法?C# IRoleType怎么用?C# IRoleType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IRoleType类属于命名空间,在下文中一共展示了IRoleType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AllorsPredicateRoleCompositeEqualsSql

 internal AllorsPredicateRoleCompositeEqualsSql(AllorsExtentFilteredSql extent, IRoleType role, Object obj)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleEquals(role, obj);
     this.role = role;
     this.obj = obj;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleCompositeEquals.cs

示例2: RoleContainedInExtent

 internal RoleContainedInExtent(ExtentFiltered extent, IRoleType role, Allors.Extent inExtent)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleContainedIn(role, inExtent);
     this.role = role;
     this.inExtent = ((Extent)inExtent).ContainedInExtent;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleContainedInExtent.cs

示例3: AllorsPredicateRoleUnitEqualsRoleSql

 internal AllorsPredicateRoleUnitEqualsRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType equalsRole)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleEquals(role, equalsRole);
     this.role = role;
     this.equalsRole = equalsRole;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleUnitEqualsRole.cs

示例4: RoleEqualsRole

 internal RoleEqualsRole(ExtentFiltered extent, IRoleType role, IRoleType equalsRole)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleEquals(role, equalsRole);
     this.role = role;
     this.equalsRole = equalsRole;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleEqualsRole.cs

示例5: AllorsPredicateRoleInExtentSql

 public AllorsPredicateRoleInExtentSql(AllorsExtentFilteredSql extent, IRoleType role, Allors.Extent inExtent)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleContainedIn(role, inExtent);
     this.role = role;
     this.inExtent = (AllorsExtentSql)inExtent;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleContainedInExtent.cs

示例6: AddCompositeRole

        internal void AddCompositeRole(Reference association, IRoleType roleType, HashSet<ObjectId> added)
        {
            if (this.addCompositeRoleRelationsByRoleType == null)
            {
                this.addCompositeRoleRelationsByRoleType = new Dictionary<IRoleType, List<CompositeRelation>>();
            }

            List<CompositeRelation> relations;
            if (!this.addCompositeRoleRelationsByRoleType.TryGetValue(roleType, out relations))
            {
                relations = new List<CompositeRelation>();
                this.addCompositeRoleRelationsByRoleType[roleType] = relations;
            }

            foreach (var roleObjectId in added)
            {
                relations.Add(new CompositeRelation(association.ObjectId, roleObjectId));
            }

            if (relations.Count > BatchSize)
            {
                this.session.AddCompositeRole(relations, roleType);
                relations.Clear();
            }
        }
开发者ID:whesius,项目名称:allors,代码行数:25,代码来源:Flush.cs

示例7: AllorsPredicateRoleInstanceofSql

 internal AllorsPredicateRoleInstanceofSql(AllorsExtentFilteredSql extent, IRoleType role, IObjectType instanceType, IClass[] instanceClasses)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleInstanceOf(role, instanceType);
     this.role = role;
     this.instanceClasses = instanceClasses;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleInstanceOf.cs

示例8: RoleContainedInEnumerable

 public RoleContainedInEnumerable(AllorsExtentFilteredSql extent, IRoleType role, IEnumerable<IObject> enumerable)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleContainedIn(role, this.enumerable);
     this.role = role;
     this.enumerable = enumerable;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleContainedInEnunerable.cs

示例9: AddBetween

 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;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:Not.cs

示例10: RoleLessThanRole

 internal RoleLessThanRole(ExtentFiltered extent, IRoleType role, IRoleType lessThanRole)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleLessThan(role, lessThanRole);
     this.role = role;
     this.lessThanRole = lessThanRole;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleLessThanRole.cs

示例11: AllorsPredicateRoleLikeSql

 internal AllorsPredicateRoleLikeSql(AllorsExtentFilteredSql extent, IRoleType role, String str)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleLikeFilter(role, str);
     this.role = role;
     this.str = str;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleLike.cs

示例12: RoleLessThanValue

 internal RoleLessThanValue(ExtentFiltered extent, IRoleType roleType, object obj)
 {
     extent.CheckRole(roleType);
     PredicateAssertions.ValidateRoleLessThan(roleType, obj);
     this.roleType = roleType;
     this.obj = roleType.Normalize(obj);
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleLessThanValue.cs

示例13: RoleExists

        internal RoleExists(ExtentFiltered extent, IRoleType roleType)
        {
            extent.CheckForRoleType(roleType);
            PredicateAssertions.ValidateRoleExists(roleType);

            this.roleType = roleType;
        }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleExists.cs

示例14: AllorsPredicateRoleGreaterThanValueSql

 internal AllorsPredicateRoleGreaterThanValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object obj)
 {
     extent.CheckRole(roleType);
     PredicateAssertions.ValidateRoleGreaterThan(roleType, obj);
     this.roleType = roleType;
     this.obj = roleType.ObjectType is IUnit ? roleType.Normalize(obj) : obj;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleGreaterThanValue.cs

示例15: AllorsPredicateRoleGreaterThanSql

 internal AllorsPredicateRoleGreaterThanSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType greaterThanRole)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleGreaterThan(role, greaterThanRole);
     this.role = role;
     this.greaterThanRole = greaterThanRole;
 }
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleGreaterThanRole.cs


注:本文中的IRoleType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。