Skip to content

Commit b1efbfa

Browse files
committed
Fix
1 parent 718069a commit b1efbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MongoDB.Driver.Encryption/CsfleSchemaBuilder.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ public static CsfleSchemaBuilder Create(Action<CsfleSchemaBuilder> configure)
5151
/// <param name="collectionNamespace">The namespace of the collection.</param>
5252
/// <param name="configure">An action to configure the encrypted collection builder.</param>
5353
/// <returns>The current <see cref="CsfleSchemaBuilder"/> instance.</returns>
54-
public CsfleSchemaBuilder Encrypt<T>(string collectionNamespace, Action<EncryptedCollectionBuilder<T>> configure)
54+
public CsfleSchemaBuilder Encrypt<T>(CollectionNamespace collectionNamespace, Action<EncryptedCollectionBuilder<T>> configure)
5555
{
5656
var builder = new EncryptedCollectionBuilder<T>();
5757
configure(builder);
58-
_schemas.Add(collectionNamespace, builder.Build());
58+
_schemas.Add(collectionNamespace.FullName, builder.Build());
5959
return this;
6060
}
6161

0 commit comments

Comments
 (0)