entity framework - Switched From EF 5 to EF 6 Alpha 3 - Now DbGeography does not work -


i have in domain

public dbgeography location { get; set; } 

and in mapping

 this.property(t => t.location); 

now in mapping file error on above line

error   1   type 'system.data.spatial.dbgeography' must non-nullable value type in order use parameter 't' in generic type or method 'system.data.entity.modelconfiguration.configuration.structuraltypeconfiguration<tstructuraltype>.property<t>(system.linq.expressions.expression<system.func<tstructuraltype,t>>)' 

never had error in ef 5.

this solution found in end after digging bit further in ef6 documentation.

removing assembly references system.data.entity.dll

installing ef6 nuget package adds following runtime assemblies project:

recent builds of ef6 nuget package removes reference system.data.entity.dll project.

ef6 doesn’t use code system.data.entity.dll , having referenced in project cause build conflicts.

these conflicts can resolved in general should not using ef6 , system.data.entity.dll in same application.

hope may else faces same issue.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -