本文整理汇总了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;
}
示例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;
}
示例3: AllorsPredicateRoleUnitEqualsRoleSql
internal AllorsPredicateRoleUnitEqualsRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType equalsRole)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleEquals(role, equalsRole);
this.role = role;
this.equalsRole = equalsRole;
}
示例4: RoleEqualsRole
internal RoleEqualsRole(ExtentFiltered extent, IRoleType role, IRoleType equalsRole)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleEquals(role, equalsRole);
this.role = role;
this.equalsRole = equalsRole;
}
示例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;
}
示例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();
}
}
示例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;
}
示例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;
}
示例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;
}
示例10: RoleLessThanRole
internal RoleLessThanRole(ExtentFiltered extent, IRoleType role, IRoleType lessThanRole)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleLessThan(role, lessThanRole);
this.role = role;
this.lessThanRole = lessThanRole;
}
示例11: AllorsPredicateRoleLikeSql
internal AllorsPredicateRoleLikeSql(AllorsExtentFilteredSql extent, IRoleType role, String str)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleLikeFilter(role, str);
this.role = role;
this.str = str;
}
示例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);
}
示例13: RoleExists
internal RoleExists(ExtentFiltered extent, IRoleType roleType)
{
extent.CheckForRoleType(roleType);
PredicateAssertions.ValidateRoleExists(roleType);
this.roleType = roleType;
}
示例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;
}
示例15: AllorsPredicateRoleGreaterThanSql
internal AllorsPredicateRoleGreaterThanSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType greaterThanRole)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleGreaterThan(role, greaterThanRole);
this.role = role;
this.greaterThanRole = greaterThanRole;
}