[#10] MemberAdminWindow: Implement MVVM

This commit is contained in:
2024-07-03 12:37:13 +02:00
parent 9a2fa3ee3d
commit af80e827b7
8 changed files with 1005 additions and 798 deletions

View File

@ -537,6 +537,11 @@ namespace Elwig.Helpers {
}
}
public static int GetEntityIdetifierForPk(params object?[] primaryKey) {
var pk = primaryKey.Select(k => k?.GetHashCode() ?? 0).ToArray();
return ((IStructuralEquatable)pk).GetHashCode(EqualityComparer<int>.Default);
}
public static int? GetEntityIdentifier(object? obj) {
if (obj == null) {
return null;