public override Object ToServerObject()
        {
            Server.Application.PopulationCriteriaEvent serverPopulationCriteria = new Server.Application.PopulationCriteriaEvent();

            MapToServerObject(serverPopulationCriteria);

            return(serverPopulationCriteria);
        }
        public PopulationCriteriaEvent Copy()
        {
            Server.Application.PopulationCriteriaEvent serverPopulationCriteria = (Server.Application.PopulationCriteriaEvent)ToServerObject();

            PopulationCriteriaEvent copiedPopulationCriteria = new PopulationCriteriaEvent(application, serverPopulationCriteria);

            return(copiedPopulationCriteria);
        }
        public virtual void MapToServerObject(Server.Application.PopulationCriteriaEvent serverPopulationCriteria)
        {
            base.MapToServerObject((Server.Application.CoreObject)serverPopulationCriteria);


            serverPopulationCriteria.PopulationId = populationId;

            serverPopulationCriteria.EventType = eventType;

            serverPopulationCriteria.ServiceId = serviceId;



            return;
        }