예제 #1
0
        internal static string ToSerializedValue(this ErrorManagementTypes value)
        {
            switch (value)
            {
            case ErrorManagementTypes.RejectAndContinue:
                return("RejectAndContinue");

            case ErrorManagementTypes.StopImport:
                return("StopImport");

            case ErrorManagementTypes.RejectUntilLimit:
                return("RejectUntilLimit");
            }
            return(null);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the ConnectorMappingErrorManagement
 /// class.
 /// </summary>
 /// <param name="errorManagementType">The type of error management to
 /// use for the mapping. Possible values include: 'RejectAndContinue',
 /// 'StopImport', 'RejectUntilLimit'</param>
 /// <param name="errorLimit">The error limit allowed while importing
 /// data.</param>
 public ConnectorMappingErrorManagement(ErrorManagementTypes errorManagementType, int?errorLimit = default(int?))
 {
     ErrorManagementType = errorManagementType;
     ErrorLimit          = errorLimit;
 }