private Microsoft.SqlServer.Dts.Runtime.DTSExecResult HandleValidationError(Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents infoEvents, string message)
        {
            if (infoEvents != null)
            {
                infoEvents.FireError(0, "MongoConnectionManager", message, string.Empty, 0);
            }

            return(DTSExecResult.Failure);
        }
Esempio n. 2
0
 /// <summary>
 /// Validates required properties.
 /// </summary>
 /// <param name="infoEvents"></param>
 /// <returns></returns>
 public override Microsoft.SqlServer.Dts.Runtime.DTSExecResult Validate(Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents infoEvents)
 {
     if (String.IsNullOrEmpty(_connectionString))
     {
         infoEvents.FireError(0, "CRM Connection Manager", "No connection specified", String.Empty, 0);
         return(DTSExecResult.Failure);
     }
     else
     {
         return(DTSExecResult.Success);
     }
 }