Hy,
I have a problem with EntitySetName in a string. If an entity name change, the compilation will be OK, but an exception will be thrown.
In .net 3.5, I coded manually an enum wich contains all EntitySetName, and used
myEnum.anEntitySetName.ToString()
With EF4 and EF4 CTP4, we can use Include with lambda-expression wich is a good alternative. Does an aleternative exist for the ObjectContext.AddObject functionnality? And what about the others functionnalities which need an EntitySetName in string?
Is it possible to generate this enum from the model ?
Thanks in advance, best regards