Skip to content

Commit

Permalink
Indices 2D
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliotorrens committed Jan 31, 2014
1 parent c7c06a3 commit 117c841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EtoolTech.MongoDB.Mapper/Core/MongoMapperHelper.cs
Expand Up @@ -249,7 +249,7 @@ internal static void RebuildClass(Type ClassType, bool RepairCollection)
CollectionsManager.GetCollectioName(ClassType.Name)).EnsureIndex(
IndexKeys.GeoSpatial(MongoMapperHelper.ConvertFieldName(ClassType.Name,index.Split('|')[1]).Trim()));
}
if (index.StartsWith("2DSphere|"))
else if (index.StartsWith("2DSphere|"))
{
CollectionsManager.GetCollection(
CollectionsManager.GetCollectioName(ClassType.Name)).EnsureIndex(
Expand Down

0 comments on commit 117c841

Please sign in to comment.