本文整理汇总了C#中IRoleType类的典型用法代码示例。如果您正苦于以下问题:C# IRoleType类的具体用法?C# IRoleType怎么用?C# IRoleType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRoleType类属于命名空间,在下文中一共展示了IRoleType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: RoleContains
internal RoleContains(ExtentFiltered extent, IRoleType role, IObject allorsObject)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleContains(role, allorsObject);
this.role = role;
this.allorsObject = allorsObject;
}
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleContains.cs
示例17: RoleLike
internal RoleLike(ExtentFiltered extent, IRoleType role, string like)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleLikeFilter(role, like);
this.role = role;
this.like = like;
}
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:RoleLike.cs
示例18: CheckForRoleType
internal void CheckForRoleType(IRoleType roleType)
{
if (!this.objectType.ExistRoleType(roleType))
{
throw new ArgumentException("Extent does not have role " + roleType.SingularName);
}
}
开发者ID:whesius,项目名称:allors,代码行数:7,代码来源:ExtentFiltered.cs
示例19: RoleBetweenValue
internal RoleBetweenValue(ExtentFiltered extent, IRoleType roleType, object first, object second)
{
extent.CheckRole(roleType);
PredicateAssertions.ValidateRoleBetween(roleType, first, second);
this.roleType = roleType;
this.first = roleType.Normalize(first);
this.second = roleType.Normalize(second);
}
开发者ID:whesius,项目名称:allors,代码行数:8,代码来源:RoleBetweenValue.cs
示例20: AllorsPredicateRoleBetweenRoleSql
internal AllorsPredicateRoleBetweenRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType first, IRoleType second)
{
extent.CheckRole(role);
PredicateAssertions.ValidateRoleBetween(role, first, second);
this.role = role;
this.first = first;
this.second = second;
}
开发者ID:whesius,项目名称:allors,代码行数:8,代码来源:RoleBetweenRole.cs
注:本文中的IRoleType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论