Feb 1, 2013 at 6:13 PM
Edited Feb 1, 2013 at 6:18 PM
I'm trying to create a Store and discover it's Entities from types in another assembly.
What I'm doing is: Create a stripped .dll only with interfaces and classes and then I try to create a Store for the types in this assembly.
SqlCeDataStore store = new SqlCeDataStore("SomeName.sdf");
In the AddType method from the DataStore I'm getting a FormatException when the method is trying to get all the field definitions:
File or assembly name 'System.Data, Version=18.104.22.168, Culture=neutral, PublicKeyToken=B77A5C561934E089', or one of its dependencies, was not found.
That assembly I'm trying to load has only one class with everything set up properly.
P.S. Smart Device -> WindowsCE project :D
If I move that class into the executing assembly and load it from there it works. But I want to have a definitions assembly which should be a part of my greater overall BL