コード例 #1
0
 /// <summary>Retrieves the list of character relations</summary>
 /// <returns>The list of all characters relations.</returns>
 public static BaseRelation[] GetAll()
 {
     return(((IEnumerable <CharacterRelationRecord>)ActiveRecordBase <CharacterRelationRecord> .FindAll())
            .Select <CharacterRelationRecord, BaseRelation>(
                (Func <CharacterRelationRecord, BaseRelation>)(crr => RelationMgr.CreateRelation(crr)))
            .ToArray <BaseRelation>());
 }
コード例 #2
0
 /// <summary>Retrieves the list of character relations</summary>
 /// <returns>The list of all characters relations.</returns>
 public static BaseRelation[] GetAll()
 {
     return(ActiveRecordBase <CharacterRelationRecord> .FindAll()
            .Select(
                crr => RelationMgr.CreateRelation(crr))
            .ToArray());
 }
コード例 #3
0
        /// <summary>
        /// Retrieves the list of character relations of a character
        /// </summary>
        /// <param name="charLowId">The character Id</param>
        /// <returns>The list of relations of the character.</returns>
        public static BaseRelation[] GetByCharacterId(uint charLowId)
        {
            CharacterRelationRecord[] relations =
                CharacterRelationRecord.FindAllByProperty("_characterId", (long)charLowId);

            return(relations.Select(crr => RelationMgr.CreateRelation(crr)).ToArray());
        }
コード例 #4
0
 /// <summary>
 /// Retrieves the list of character relations of a character
 /// </summary>
 /// <param name="charLowId">The character Id</param>
 /// <returns>The list of relations of the character.</returns>
 public static BaseRelation[] GetByCharacterId(uint charLowId)
 {
     return(((IEnumerable <CharacterRelationRecord>)ActiveRecordBase <CharacterRelationRecord> .FindAllByProperty(
                 "_characterId", (object)(long)charLowId))
            .Select <CharacterRelationRecord, BaseRelation>(
                (Func <CharacterRelationRecord, BaseRelation>)(crr => RelationMgr.CreateRelation(crr)))
            .ToArray <BaseRelation>());
 }
コード例 #5
0
 /// <summary>
 /// Retrieves the list of character relations of a character
 /// </summary>
 /// <param name="charLowId">The character Id</param>
 /// <returns>The list of relations of the character.</returns>
 public static BaseRelation[] GetByCharacterId(uint charLowId)
 {
     return(ActiveRecordBase <CharacterRelationRecord> .FindAllByProperty(
                "_characterId", (long)charLowId)
            .Select(
                crr => RelationMgr.CreateRelation(crr))
            .ToArray());
 }
コード例 #6
0
        /// <summary>
        /// Retrieves the list of character relations
        /// </summary>
        /// <returns>The list of all characters relations.</returns>
        public static BaseRelation[] GetAll()
        {
            CharacterRelationRecord[] relations = CharacterRelationRecord.FindAll();

            return(relations.Select(crr => RelationMgr.CreateRelation(crr)).ToArray());
        }