I use ‘SQLite-1.0.66.0-setup.exe’ from http://sqlite.phxsoftware.com/.
I have a db of ‘World.db3’ with 3 tables City, Country, CountryLanguage.
I use VS2008 to generate a demo.edmx from that db.
But in the programming:
WorldEntities we = new WorldEntities(); is right.
WorldEntities.City city = new WorldEntities.City(); is error.
It says:
'WorldEntities.City' is a 'property' but is used like a 'type'.
But I can see the City in demo.Designer.cs.
public partial class WorldEntities : global::System.Data.Objects.ObjectContext
public partial class City : global::System.Data.Objects.DataClasses.EntityObject
WorldEntitiesis your context, theCityis a property on that object.Remove the prefix “WorldEntities.” and add the appropriate namespace for the type City.
eg.