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)); }
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)); }
public CallbackReport(int id, CallbackNotificationType callbackNotificationType, string url, DateTime updated, DateTime created) : base(id, updated, created, false) { this._callbackNotificationType = callbackNotificationType; this._url = url; }
public List <CallbackReport> Load(CallbackNotificationType type) { using (SqlConnectionInfo connection = new SqlConnectionInfo(this.Type)) return(this.Load(connection, type)); }