Entity Framework 6 RTM - Custom Relationship Convention -


i using convention this in beta version of ef6:

public class navigationpropertyconfigurationconvention : iconfigurationconvention<propertyinfo, navigationpropertyconfiguration> {     public void apply(propertyinfo propertyinfo, func<navigationpropertyconfiguration> configuration)     {         var foreignkeyproperty = propertyinfo.declaringtype.getproperty("id" + propertyinfo.name);          if (foreignkeyproperty != null && configuration().constraint == null)         {             var fkconstraint = new foreignkeyconstraintconfiguration();             fkconstraint.addcolumn(foreignkeyproperty);              configuration().constraint = fkconstraint;         }                } } 

but iconfigurationconvention interface has been marked internal, can't upgrade ef's references. have searched many places, not found how reproduce functionality in rtm version.

i have tried this, seems works independent associations (ias), not case cause have fks in clr objects.

has done works again?

thanks!


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -