mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 20:43:19 +00:00
Put
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user