Ejemplo n.º 1
0
        public DataTableConverter(DataTableConversionStyle style = DataTableConversionStyle.Compact)
        {
            switch (style)
            {
            case DataTableConversionStyle.Compact:
                _converter = new CompactDataTableConverter();
                break;

            case DataTableConversionStyle.Verbose:
                _converter = new VerboseDataTableConverter();
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(style), style, null);
            }
        }
 public DataSetConverter(DataTableConversionStyle style = DataTableConversionStyle.Compact)
 {
     _converter = new DataTableConverter(style);
 }