A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signumsoftware/framework/commit/8377d1b78b12c2572e881f06da6680d27d21fa1b below:

Merge branch 'net7' · signumsoftware/framework@8377d1b · GitHub

@@ -457,15 +457,15 @@ public static FileContent ExportExcelFile(Type type, CultureInfo culture)

457 457

.ToDictionary();

458 458 459 459

var list = result

460 -

.OrderBy(a=>a.Key.Instance.Id)

461 -

.ThenBy(a=>a.Key.Route.PropertyInfo!.MetadataToken).Select(r => new ExcelRow

462 -

{

463 -

Instance = r.Key.Instance.Key(),

464 -

Path = r.Key.Route.PropertyString(),

465 -

RowId = r.Key.RowId?.ToString(),

466 -

Original = r.Value.OriginalText,

467 -

Translated = r.Value.TranslatedText

468 -

}).ToList();

460 +

.OrderBy(a => a.Key.Instance.Id)

461 +

.ThenBy(a => a.Key.Route.PropertyInfo!.MetadataToken).Select(r => new ExcelRow

462 +

{

463 +

Instance = r.Key.Instance.Key(),

464 +

Path = r.Key.Route.PropertyString(),

465 +

RowId = r.Key.RowId?.ToString(),

466 +

Original = r.Value.OriginalText,

467 +

Translated = r.Value.TranslatedText

468 +

}).ToList();

469 469 470 470

return new FileContent(

471 471

fileName: "{0}.{1}.View.xlsx".FormatWith(TypeLogic.GetCleanName(type), culture.Name),

@@ -651,13 +651,12 @@ internal TranslatableElement(Lite<Entity> entity, PropertyRoute route, MList<T>.

651 651

}

652 652

}

653 653 654 -

#pragma warning disable CS8618 // Non-nullable field is uninitialized.

655 654

public class TranslationRecord

656 655

{

657 -

public CultureInfo Culture;

658 -

public LocalizedInstanceKey Key;

659 -

public string TranslatedText;

660 -

public string OriginalText;

656 +

public required CultureInfo Culture;

657 +

public required LocalizedInstanceKey Key;

658 +

public required string TranslatedText;

659 +

public required string OriginalText;

661 660 662 661

public override string ToString()

663 662

{

@@ -667,9 +666,9 @@ public override string ToString()

667 666 668 667

public class InstanceChanges

669 668

{

670 -

public Lite<Entity> Instance { get; set; }

669 +

public required Lite<Entity> Instance { get; set; }

671 670 672 -

public Dictionary<IndexedPropertyRoute, Dictionary<CultureInfo, PropertyRouteConflict>> RouteConflicts { get; set; }

671 +

public required Dictionary<IndexedPropertyRoute, Dictionary<CultureInfo, PropertyRouteConflict>> RouteConflicts { get; set; }

673 672 674 673

public override string ToString()

675 674

{

@@ -721,7 +720,7 @@ public class PropertyRouteConflict

721 720

public string? OldOriginal;

722 721

public string? OldTranslation;

723 722 724 -

public string Original;

723 +

public required string Original;

725 724

public List<AutomaticTranslation> AutomaticTranslations = new List<AutomaticTranslation>();

726 725 727 726

public override string ToString()

@@ -732,11 +731,11 @@ public override string ToString()

732 731 733 732

class ExcelRow

734 733

{

735 -

public string Instance;

736 -

public string Path;

737 -

public string? RowId;

738 -

public string Original;

739 -

public string? Translated;

734 +

public required string Instance;

735 +

public required string Path;

736 +

public required string? RowId;

737 +

public required string Original;

738 +

public required string? Translated;

740 739

}

741 740 742 741

public struct LocalizedInstanceKey : IEquatable<LocalizedInstanceKey>

@@ -786,8 +785,7 @@ public string RouteAndRowId()

786 785 787 786

public class TranslatedTypeSummary

788 787

{

789 -

public Type Type;

790 -

public CultureInfo CultureInfo;

791 -

public TranslatedSummaryState? State;

788 +

public required Type Type;

789 +

public required CultureInfo CultureInfo;

790 +

public required TranslatedSummaryState? State;

792 791

}

793 -

#pragma warning restore CS8618 // Non-nullable field is uninitialized.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4