Utility types
Utility types (from ZibStack.NET.Core)
Section titled “Utility types (from ZibStack.NET.Core)”TypeScript-style utility types are available in the separate ZibStack.NET.Core package:
using ZibStack.NET.Core;
[PartialFrom(typeof(Player))] // all properties optional + ApplyTo()public partial record PartialPlayer;
[PickFrom(typeof(Player), "Name", "Level")] // whitelistpublic partial record PlayerSummary;
[OmitFrom(typeof(Player), "Id", "CreatedAt")] // blacklistpublic partial record PlayerWithoutMeta;
[IntersectFrom(typeof(Player))] // combine multiple types[IntersectFrom(typeof(Address))]public partial record PlayerWithAddress;See the ZibStack.NET.Core documentation for full documentation.