This question is locked. New answers and comments are not allowed.
Hi Guys,
I noticed that when I try creating a WCF Data Service using the wizard for a simple model, I end up with a class generated called DataManager, that does the actual implementation of the necessary services used by the DataService<> class from Microsoft. However if you use the lasted CP2 from Microsoft with Entity Framework, creating a WCF Data Services service is as simple as:
It would be nice if the OpenAccess context implemented the necessary interfaces that is implemented by the generated DataManager class natively, so we would not have to generate this class? The main reason why is because I don't want to have to maintain the DataManager class, and since it is generated one time (not generated every build with a template), if there a bug fixes or changes to do things better, they will be missed unless I regenerate the code?
Is this something planned for the future?
I noticed that when I try creating a WCF Data Service using the wizard for a simple model, I end up with a class generated called DataManager, that does the actual implementation of the necessary services used by the DataService<> class from Microsoft. However if you use the lasted CP2 from Microsoft with Entity Framework, creating a WCF Data Services service is as simple as:
public
class
EFService : DataService<StoreEntities>
{
// This method is called only once to initialize service-wide policies.
public
static
void
InitializeService(DataServiceConfiguration config)
{
config.SetEntitySetAccessRule(
"*"
, EntitySetRights.All);
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;
}
}
It would be nice if the OpenAccess context implemented the necessary interfaces that is implemented by the generated DataManager class natively, so we would not have to generate this class? The main reason why is because I don't want to have to maintain the DataManager class, and since it is generated one time (not generated every build with a template), if there a bug fixes or changes to do things better, they will be missed unless I regenerate the code?
Is this something planned for the future?