mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-13 08:30:23 +00:00
c
This commit is contained in:
@@ -67,10 +67,9 @@ public class EntityStore : IStore
|
||||
// Get db
|
||||
using (var db = Getter())
|
||||
{
|
||||
|
||||
|
||||
var res = db.Find(ti.Type.ClrType, id) as IResource;
|
||||
|
||||
|
||||
if (res == null)
|
||||
{
|
||||
return new AsyncReply<IResource>(null);
|
||||
@@ -84,7 +83,7 @@ public class EntityStore : IStore
|
||||
|
||||
// load navigation properties
|
||||
var ent = db.Entry(res);
|
||||
|
||||
|
||||
foreach (var rf in ent.References)
|
||||
{
|
||||
rf.Load();
|
||||
@@ -95,6 +94,8 @@ public class EntityStore : IStore
|
||||
col.Load();
|
||||
}
|
||||
|
||||
//ent.State = EntityState.Detached;
|
||||
|
||||
//var refs = ent.References.ToList();
|
||||
|
||||
db.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user