mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
1.2.7
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
<PackageProjectUrl>http://www.esiur.com</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/esiur/esiur-dotnet/</RepositoryUrl>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Version>1.2.3</Version>
|
||||
<Version>1.2.5</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -1,6 +1,6 @@
|
||||
using Esiur.Resource;
|
||||
using System;
|
||||
using Esiur.Engine;
|
||||
using Esiur.Core;
|
||||
using MongoDB.Driver.Core;
|
||||
using MongoDB.Driver;
|
||||
using MongoDB.Bson;
|
||||
@ -530,12 +530,14 @@ namespace Esiur.Stores.MongoDB
|
||||
|
||||
var attrsDoc = ComposeStructure(attrs);
|
||||
|
||||
var type = ResourceProxy.GetBaseType(resource);
|
||||
|
||||
var document = new BsonDocument
|
||||
{
|
||||
{ "parents", parents },
|
||||
{ "children", children },
|
||||
{"attributes", attrsDoc },
|
||||
{ "classname", resource.GetType().FullName + "," + resource.GetType().GetTypeInfo().Assembly.GetName().Name },
|
||||
{ "classname", type.FullName + "," + type.GetTypeInfo().Assembly.GetName().Name },
|
||||
{ "name", resource.Instance.Name },
|
||||
{ "_id", new BsonObjectId(new ObjectId(resource.Instance.Attributes["objectId"].ToString())) },
|
||||
{"values", values }
|
||||
|
Reference in New Issue
Block a user