Weasel.Export.Common 8.0.3

Weasel.Export

��������� ���������� ��� �������� �������� ������� ������ � ������� .xlsx

���������

���������� ��������� �� ���������� ������������ � ������������ - ����������� ��������� ��������� ��������, � ������� ��������� �������� �� ������ �������������� ��� ���� �����.

��� ���� (����� ����)

  • �������� ����� - StandartRow. ������ � ��� ������� �������� ������� ����� �������. �� ��������� 2 �������� ����������, ������� ��������� ���� ������:
    • Cells - ������ ������ ������ (���������� �����)
    • Color - ���� ������

���������� ���������� ����������:

  • IStandartHeaderExporter ����� ������� ������� �������� ��������� - �������������� ����� GetHeader(). ��� ��������� ������� ������ ����� � �������� ���������� �������.
  • ICustomHeaderExporter<T> ��� ���� ����� ������� (� ����� ������) ������ - �������������� ����� GetHeader(T model). � ������� �� �������� ������ ������ ��� �������� ��������� ����� ������������ �������������� ������. ������� ������ ����� � ��� �� �������.

���������� ���������� �����:

  • IStandartRowExporter<T> ����� �� ����� ������� ������� - ������ ������� ��� ��������������� ��� ������ ���� T � ������ ���� object?[]. ����� ���� ��� �������� �������� ref int counter - ��� ������� ����� ������� ����� �� ������ �� �������� ������ � �������. ������ ��� �� 1 �� N, ��� N - ������ ���������, ������� ���������� � ���������. ������� ���������������� �������������� (��� ������������� ����������� ������� - �� ���� �����).
  • IOneToManyRowExporter<T> ��� ����� �������� ����� ����� ��� ������� ����� ��� ������ �� ������ ������������ ������ 1 �������. ������ �������� �� ��, ������ ������ ���� ������������� �� ����� 1 �� ������, �� ���� �� 1 ������� ������ ���� T � ��������� StandartRow.
  • IManyToOneRowExporter<T> ����� �������� �������� - ���� ������������� �� ��������� �������� ���� T � 1 StandartRow ���������� ���� - ����������� ������� � ����� �������.

������� ���������

��������� ����������������� ���������� �� ������ �������������� ��������� ���������� ���������� � �������� ������������ ��������.

�� ������ �� ���� �������� ������� ����� ������ ���������� �������. ������ ���������� ������������� ������� ����������� ������, ��������� ������� �� ������ ��������� ���������� ���, ��������� ��������� ���� �������������� � ClosedXML.

  • StandartExporter<T> - ����������� ��������������
    • IStandartHeaderExporter - ��� ���������,
    • IStandartRowExporter<T> - ��� ����� �������.
  • OneToManyExporter<T> - ����������� ��������������
    • IStandartHeaderExporter - ��� ���������,
    • IOneToManyRowExporter<T> - ��� ����� �������.
  • AdditionalOnEndExporter - ����������� ��������������
    • IStandartHeaderExporter - ��� ���������,
    • IStandartRowExporter<T> - ��� ����� �������,
    • IManyToOneRowExporter<T> - ��� ��������� ����������� ������.

No packages depend on Weasel.Export.Common.

ClosedXML update + readme + version sync

.NET 8.0

Version Downloads Last updated
8.0.3 8 07.07.2025
8.0.0 6 03.08.2025
7.0.0 5 03.08.2025
6.0.0 5 03.08.2025