You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up my model adding custom annotations to some entities with the fluent API in the OnModelCreating call.
How can I intercept this data when generating the tables when overriding the Generate methods?
protectedoverridevoidGenerate(CreateTableOperationoperation,IModelmodel,MigrationCommandListBuilderbuilder){varentity=model.GetEntityTypes().Single(et =>et.Relational().TableName==operation.Name);varannotations=entity.GetAnnotations().Where(an =>an.Name.StartsWith(myAnnotationScope));// do my stuff}
Is it possible to do this if you are overriding Generate with the base MigrationOperation? I would like to be able to get the entity and their annotations for all operations not just CreateTable.
Hi,
I set up my model adding custom annotations to some entities with the fluent API in the
OnModelCreating
call.How can I intercept this data when generating the tables when overriding the Generate methods?
Please see this issue: #1203
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: