How could i create a seed to insert default data to the last created Db with multi tenancy?. or should I use any other method to insert default data..?
I need to insert some data to new Db at the time when i create new tenancy.I have created a seed method with tenant Id 1, as described in sample application. but it not works for me,the data are inserted into main Db only.
If you used module-zero template and using db per tenant approach, you can seed it here: <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/Configuration.cs#L34">https://github.com/aspnetboilerplate/mo ... ion.cs#L34</a>
Another option is just adding data using repositories just after creating the tenant.