This commit is contained in:
2026-07-15 02:42:16 +03:00
parent be2a24bfd9
commit 3a1b95dbc5
27 changed files with 1767 additions and 197 deletions
@@ -71,7 +71,13 @@ public class EsiurProxyRewrite : IModelFinalizingConvention
// check if the object exists
var obj = options.Warehouse.Create(entityType.ClrType, null) as IResource;
options.Store.TypesByType[entityType.ClrType].PrimaryKey.SetValue(obj, id);
options.Warehouse.Put($"{options.Store.Instance.Name}/{entityType.ClrType.Name}/{id}", obj, new ResourceContext(0, null, null, manager)).Wait();
var resourceContext = manager == null
? null
: new ResourceContext(new[] { manager });
options.Warehouse.Put(
$"{options.Store.Instance.Name}/{entityType.ClrType.Name}/{id}",
obj,
resourceContext).Wait();
return obj;
}
else