Enum PrefetchPolicyCreator.UnboundRowWriteMode
How CreateFromDrafts(IReadOnlyList<SerenityWizardScratchDraft<PrefetchPolicyProfile>>, string, string, bool, UnboundRowWriteMode) resolves an UNBOUND row (no Serenity.Global.Infrastructure.Editor.SerenityWizardScratchDraft`1.SourceAsset) whose Id matches an existing on-disk profile. The headless/programmatic Create(Input) entry point documents update-by-Id as an intentional feature, so it keeps UpdateExistingById. CreatePrefetchPolicyWindow has real row bindings and never wants an unbound row to touch an asset no row owns — see CreateOnly.
Namespace: Serenity.AssetPrefetcher.Infrastructure.Editor.Builder
Assembly: Serenity.UnityAssetPrefetcher.Infrastructure.Editor.dll
Syntax
public enum PrefetchPolicyCreator.UnboundRowWriteMode
Fields
| Name | Description |
|---|---|
| CreateOnly | An unbound row whose Id resolves (exact or case-variant) to any existing in-folder profile is refused before the transaction ever opens — a row with no bound source only ever creates a brand-new asset. Used by CreatePrefetchPolicyWindow, whose row list already tracks every asset it means to update via Serenity.Global.Infrastructure.Editor.SerenityWizardScratchDraft`1.SourceAsset. |
| UpdateExistingById | An unbound row resolves onto an existing same-Id asset in the folder and updates it in place — the documented headless behavior. |