andrewlock / StronglyTypedId

A Rosyln-powered generator for strongly-typed IDs
MIT License
1.52k stars 80 forks source link

[Proposal] Add support for MongoDB.Bson.ObjectId #54

Closed auribuo closed 9 months ago

auribuo commented 2 years ago

It would be really nice to have the option to use ObjectId as a backing type, because MongoDb relies a lot on it and it would remove some convertion that otherwise must happen.

larsbloch commented 2 years ago

I second this !

andrewlock commented 9 months ago

For feature requests like this, I think I've found an answer in the big redesign of the library in this PR:

The main idea is to make the library much more maintainable while also giving people a mechanism to customise the generated IDs as much as they like. This will make it easy to make changes like this 🙂