Esempio n. 1
0
        public IEnumerable <DataEntity> ExecuteQuery(Core.ConnectorApi.Query.Query query)
        {
            switch (query.RootEntity.ObjectDefinitionFullName)
            {
            case "Event":
                var evnt = new ObjectDefinitions.Event(this.Connection);
                return(evnt.ExecuteQuery(query));

            case "Attendee":
                var attendee = new ObjectDefinitions.Attendee(this.Connection);
                return(attendee.ExecuteQuery(query));

            case "RegSession":
                var regSession = new ObjectDefinitions.RegSession(this.Connection);
                return(regSession.ExecuteQuery(query));

            case "Session":
                var session = new ObjectDefinitions.Session(this.Connection);
                return(session.ExecuteQuery(query));

            case "Meeting":
                var meeting = new ObjectDefinitions.Meeting(this.Connection);
                return(meeting.ExecuteQuery(query));

            case "Speaker":
                var speaker = new ObjectDefinitions.Speaker(this.Connection);
                return(speaker.ExecuteQuery(query));

            case "SessionTrack":
                var sessiontrack = new ObjectDefinitions.SessionTrack(this.Connection);
                return(sessiontrack.ExecuteQuery(query));

            case "FinancialTransaction":
                var financialTransaction = new ObjectDefinitions.FinancialTransaction(this.Connection);
                return(financialTransaction.ExecuteQuery(query));

            default:
                throw new NotImplementedException();
            }
        }
Esempio n. 2
0
 public IEnumerable<DataEntity> ExecuteQuery(Core.ConnectorApi.Query.Query query)
 {           
     switch(query.RootEntity.ObjectDefinitionFullName)
     {
         case "Event":
             var evnt = new ObjectDefinitions.Event(this.Connection);
             return evnt.ExecuteQuery(query);
         case "Attendee":
             var attendee = new ObjectDefinitions.Attendee(this.Connection);
             return attendee.ExecuteQuery(query);
         case "RegSession":
             var regSession = new ObjectDefinitions.RegSession(this.Connection);
             return regSession.ExecuteQuery(query);
         case "Session":
             var session = new ObjectDefinitions.Session(this.Connection);
             return session.ExecuteQuery(query);
         case "Meeting":
             var meeting = new ObjectDefinitions.Meeting(this.Connection);
             return meeting.ExecuteQuery(query);
         case "Speaker":
             var speaker = new ObjectDefinitions.Speaker(this.Connection);
             return speaker.ExecuteQuery(query);
         case "SessionTrack":
             var sessiontrack = new ObjectDefinitions.SessionTrack(this.Connection);
             return sessiontrack.ExecuteQuery(query);
         case "FinancialTransaction":
             var financialTransaction = new ObjectDefinitions.FinancialTransaction(this.Connection);
             return financialTransaction.ExecuteQuery(query);
             
         default:
             throw new NotImplementedException();
     }
     
 }