コード例 #1
0
        public GroupForArtistContract(GroupForArtist groupForArtist, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => groupForArtist);

            Group = new ArtistWithAdditionalNamesContract(groupForArtist.Group, languagePreference);
            Id = groupForArtist.Id;
            Member = new ArtistWithAdditionalNamesContract(groupForArtist.Member, languagePreference);
        }
コード例 #2
0
ファイル: GroupForArtist.cs プロジェクト: realzhaorong/vocadb
        public virtual bool Equals(GroupForArtist another)
        {
            if (another == null)
                return false;

            if (ReferenceEquals(this, another))
                return true;

            return this.Id == another.Id;
        }
コード例 #3
0
ファイル: Artist.cs プロジェクト: sethura/vocadb
        public virtual GroupForArtist AddGroup(Artist grp)
        {
            ParamIs.NotNull(() => grp);

            var link = new GroupForArtist(grp, this);

            AllGroups.Add(link);
            grp.AllMembers.Add(link);

            return(link);
        }
コード例 #4
0
        public virtual bool Equals(GroupForArtist another)
        {
            if (another == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, another))
            {
                return(true);
            }

            return(this.Id == another.Id);
        }