Esempio n. 1
0
        public void CreateRelationType(string relationTypeName, IEnumerable <RoleInfo> roleInfos)
        {
            AssertNotNull(relationTypeName, "relationTypeName");
            AssertNotNull(roleInfos, "roleInfos");
            RelationTypeSupport type = new RelationTypeSupport(relationTypeName, roleInfos);

            ValidateRelationType(type);
            _relationTypes[relationTypeName] = type;
        }
Esempio n. 2
0
 public void CreateRelationType(string relationTypeName, IEnumerable<RoleInfo> roleInfos)
 {
     AssertNotNull(relationTypeName, "relationTypeName");
     AssertNotNull(roleInfos, "roleInfos");
     RelationTypeSupport type = new RelationTypeSupport(relationTypeName, roleInfos);
     ValidateRelationType(type);
     _relationTypes[relationTypeName] = type;
 }