@@ -72,14 +72,14 @@ Index Types
72
72
MongoDB provides several different index types to support querying
73
73
your data. The following steps describe the process for creating an index:
74
74
75
- - Use the ``IndexKeysDefinitionBuilder<TDocument>`` class, accessible through the
76
- ``Builders<TDocument>.IndexKeys`` property, to create one or more
77
- ``IndexKeysDefinition<TDocument>`` objects. These key definitions describe the type
78
- of index to create and the index's other properties.
79
- - Create a new ``CreateIndexModel<TDocument>`` object. Pass the key definitions from the
80
- previous step to the constructor.
81
- - Call the ``CreateOne()`` method on your collection's ``Indexes`` property. Pass
82
- the ``CreateIndexModel<TDocument>`` object from the previous step.
75
+ 1. Use the ``IndexKeysDefinitionBuilder<TDocument>`` class, which you can access through the
76
+ ``Builders<TDocument>.IndexKeys`` property, to create one or more
77
+ ``IndexKeysDefinition<TDocument>`` objects. These key definitions describe the type
78
+ of index to create and the index's other properties.
79
+ #. Create a new ``CreateIndexModel<TDocument>`` object. Pass the key definitions from the
80
+ previous step to the constructor.
81
+ #. Call the ``CreateOne()`` method on your collection's ``Indexes`` property. Pass
82
+ the ``CreateIndexModel<TDocument>`` object from the previous step.
83
83
84
84
The following sections describe the most common index types
85
85
and provide sample code for creating each index type.
0 commit comments