entity framework - What's the name convention of many to many tables in EF -
i have many many relationship between table , table b, @ beginning, generated relationship table ab, however, after few updates, name change ba, want avoid that. know can use fluentconfiguration .totable specify name, there better way that?
the default name ab
or ba
depends on order in dbset
s of 2 entities declared in context class, on other entities refer 2 entities , in order metadata loaded context. results few tests here.
in other words name swap 1 other whenever change soemthing in model or context class during development , hard control.
specifying name fluent api best way have stable link table name doesn't change - , far can tell, way.
Comments
Post a Comment