Ejemplo n.º 1
0
        public List <CallbackReport> Load(ISqlConnectionInfo connection, CallbackNotificationType type)
        {
            SqlQueryParameters parameters = new SqlQueryParameters();

            parameters.Where = "[cr].CallbackNotificationTypeID = @CallbackNotificationTypeID";
            parameters.Arguments.Add("CallbackNotificationTypeID", (int)type);
            return(this.LoadMany(connection, parameters));
        }
Ejemplo n.º 2
0
        public List <CallbackReport> Load(IConnectionInfo connection, CallbackNotificationType type)
        {
            ISqlConnectionInfo sqlConnection = connection as ISqlConnectionInfo;

            if (sqlConnection != null)
            {
                return(this.Load(sqlConnection, type));
            }
            using (sqlConnection = new SqlConnectionInfo(connection, this.Type))
                return(this.Load(sqlConnection, type));
        }
Ejemplo n.º 3
0
 public CallbackReport(int id, CallbackNotificationType callbackNotificationType, string url, DateTime updated, DateTime created) : base(id, updated, created, false)
 {
     this._callbackNotificationType = callbackNotificationType;
     this._url = url;
 }
Ejemplo n.º 4
0
 public List <CallbackReport> Load(CallbackNotificationType type)
 {
     using (SqlConnectionInfo connection = new SqlConnectionInfo(this.Type))
         return(this.Load(connection, type));
 }