We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to set the Collection attribute dynamically when I want to save an entity?
Something like that:
var data = new FormData(); data.SetCollectionName("FormData_1"); await data.SaveAsync();
Instead of a fixed Collection attribute:
[Collection("FormData_1")] public class FormData : Entity, ICreatedOn, IModifiedOn {
The text was updated successfully, but these errors were encountered:
no such feature exists in this library but you can always drop down into the mongo driver level like so:
await DB.Database("dbName") //shortcut for obtaining the IMongoDatabase .GetCollection<FormData>("FormData_1") .InsertOneAsync(new FormData(){});
Sorry, something went wrong.
No branches or pull requests
Is it possible to set the Collection attribute dynamically when I want to save an entity?
Something like that:
Instead of a fixed Collection attribute:
The text was updated successfully, but these errors were encountered: