Table of Contents

Method CreateFrom

Namespace
MongoDB.EntityFrameworkCore.Metadata
Assembly
MongoDB.EntityFrameworkCore.dll

CreateFrom(IDictionary<string, object>)

Create a BsonRepresentationConfiguration from an IDictionary representation so it may be recreated from an EF Core static model.

public static BsonRepresentationConfiguration CreateFrom(IDictionary<string, object> values)

Parameters

values IDictionary<string, object>

Returns

BsonRepresentationConfiguration

A BsonRepresentationConfiguration with the properties set from the dictionary.

Remarks

The dictionary passes is typically created by ToDictionary().

Exceptions

ArgumentException

Throws if items in the dictionary are missing or the wrong type.