Ejemplo n.º 1
0
        public virtual PVForAlbum CreatePV(PVContract contract)
        {
            ParamIs.NotNull(() => contract);

            var pv = new PVForAlbum(this, contract);

            PVs.Add(pv);

            return(pv);
        }
Ejemplo n.º 2
0
        public virtual bool Equals(PVForAlbum another)
        {
            if (another == null)
                return false;

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

            if (Id == 0)
                return false;

            return this.Id == another.Id;
        }
Ejemplo n.º 3
0
        public virtual bool Equals(PVForAlbum another)
        {
            if (another == null)
            {
                return(false);
            }

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

            if (Id == 0)
            {
                return(false);
            }

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