MonoSoftware.MonoX.DAL.EntityClasses.PollEntity.GetDependentRelatedEntities C# (CSharp) Method

GetDependentRelatedEntities() protected method

Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These entities will have to be persisted before this entity during a recursive save.
protected GetDependentRelatedEntities ( ) : List
return List
        protected override List<IEntity2> GetDependentRelatedEntities()
        {
            List<IEntity2> toReturn = new List<IEntity2>();
            if(_aspnetApplication!=null)
            {
                toReturn.Add(_aspnetApplication);
            }
            if(_aspnetUser!=null)
            {
                toReturn.Add(_aspnetUser);
            }
            return toReturn;
        }