修改BUG:MongoDB数据库增加BootstrapMenu类映射关系描述

This commit is contained in:
Argo-MacBookPro 2018-11-01 10:16:52 +08:00
parent e1c14e167c
commit f216a95c66
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ namespace Bootstrap.DataAccess.MongoDB
md.AutoMap();
md.IdMemberMap.SetSerializer(new StringSerializer(BsonType.ObjectId));
md.IdMemberMap.SetIgnoreIfDefault(true);
md.UnmapMember(m => m.CategoryName);
md.UnmapMember(m => m.Active);
md.UnmapMember(m => m.ParentName);
md.UnmapMember(m => m.Menus);
});
}
if (!BsonClassMap.IsClassMapRegistered(typeof(DataAccess.Group)))