anchor.diff:                                  continueToNext()
                               else 
                                   continueToNext()
  -<<<<<<< HEAD
                           |_ ->continueToNext()
                   
                   let keys = List.ofSeq entity.RawValue.Keys
                   rewriteKey keys entity entityType (getKeyFieldName entityType)
  -=======
  -                        |_ -> continueToNext()
  -                rewriteKey xs entity entityType (getKeyFieldName entityType)
  ->>>>>>> 97f2364eed955dc69928279817023da26a667799
                   entity
   
               rewriteAllKey entity 
               |> LiteDB.JsonSerializer.Serialize
               |> fun json -> JsonConvert.DeserializeObject(json, entityType, converters)
  -<<<<<<< HEAD
  -
  -=======
  -    
  -    /// Converts an object to a BsonValue
  ->>>>>>> 97f2364eed955dc69928279817023da26a667799
       let serializeField(any: obj) : BsonValue = 
           // Entity => Json => Bson
           let json = JsonConvert.SerializeObject(any, Formatting.None, converters);
  
positive.code:               else "Id"
                   
              let rewriteAllKey (entity:BsonDocument)=    
  <<<<<<< HEAD
                  
                  let rec rewriteKey (xs:string list) (entity:BsonDocument) (entityType: Type) key=
  =======
                  let xs = List.ofSeq entity.RawValue.Keys 
                  let rec rewriteKey (xs:string list) (entity:BsonDocument) (entityType: Type) key =
  >>>>>>> 97f2364eed955dc69928279817023da26a667799
                      match xs with 
                      | []  -> ()
                      | y :: ys -> 
  
negative.code:                             |> withKeyValue key id
                              |> removeEntryByKey "_id"
                              |> ignore
                              continueToNext()
                          // Do not rewrite keys of Maps/Dictionaries
                          |_, (:?BsonDocument as bson) when entityType.Name = "FSharpMap`2" -> 
  