This commit is contained in:
ahmed committed 2025-08-24 14:51:18 +03:00
1 parent a1353a03ad
commit e64d96bd0d
5 files changed
+113 -65

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ public class EsiurProxyRewrite : IModelFinalizingConvention
if (Codec.ImplementsInterface(entityType.ClrType, typeof(IResource)))
{
// check if the object exists
var obj = options.Warehouse.CreateInstance(entityType.ClrType) as IResource;
var obj = options.Warehouse.Create(entityType.ClrType) as IResource;
options.Store.TypesByType[entityType.ClrType].PrimaryKey.SetValue(obj, id);
options.Warehouse.Put(id.ToString(), obj, options.Store, null, 0, manager).Wait();
return obj;