Exception Message:
The number of members in the conceptual type 'Model' does not match with the number of members on the object side type 'Model'. Make sure the number of members are the same.
I am not exactly sure what code I need to post because there is a lot to it. I am using MEF or what I like to call "magic" and I am not very familiar with it.
Possible relevant code:
public ObjectSet<BasicAccount> BasicAccounts
{
get
{
if ((_BasicAccounts == null))
{
**_BasicAccounts = base.CreateObjectSet<BasicAccount>("BasicAccounts");**
}
return _BasicAccounts;
}
}
The line with stars surrounding it is where the exception happens.
This is thrown after these lines of code are executed in another class:
AccountRepository acctRep = new AccountRepository();
ObservableCollection<BasicAccount> Accounts = new ObservableCollection<BasicAccount>(acctRep.GetBasicAccountList().Cast<BasicAccount>());
If you need to see anymore code, just let me know and I will try to quick to post it.
Any help is appreciated!!