/// <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>()); }
/// <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()); }
/// <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()); }
/// <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>()); }
/// <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()); }
/// <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()); }