ravendb / IdentityServer4.Contrib.RavenDB

MIT License
9 stars 3 forks source link

Expose entities and mappers as public #11

Open lahma opened 2 years ago

lahma commented 2 years ago

Some things were internalized recently, but it makes it really had to seed data into database in testing and in migrations. With this PR I propose to open some types as public again (but sealed) to allow general data access and migrations by using existing types.

Basically entities and their mappers, allows manual data feeding in our solution.

lukaszdobrzynski commented 2 years ago

@lahma Have you had a chance to take a look at this PR? I've proposed to add a data migrator feature there just for the purposes you mention. Would the idea solve your problem?

lahma commented 2 years ago

@lukaszdobrzynski I did have look at that, but that doesn't cover our migration needs where we want to migrate multiple document types transactionally, like also ASP.NET identity ones + some custom other types. This is why we are using RavenMigrations.