Represents a serializer for a class map.
Exemplo n.º 1
0
		public ContentSerializer(Type type, MongoDatabaseProvider database, IProxyFactory proxies)
		{
			this.database = database;
			classMap = BsonClassMap.LookupClassMap(type);
			serializer = new BsonClassMapSerializer(classMap);
			this.proxies = proxies;
		}
Exemplo n.º 2
0
 public MapongoSerializer(Type type, IEnumerable<MemberInfo> members)
 {
     _type = type;
     _members = members.ToDictionary(x => x.Name);
     _serializer = new BsonClassMapSerializer(BsonClassMap.LookupClassMap(type));
 }