Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LinqToSql And Silverlight
Message
From
28/10/2010 10:23:56
 
 
To
28/10/2010 10:11:09
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01486268
Message ID:
01487381
Views:
39
>>>> And since the DomainService is not created as a partial class then any additions/changes have to be completely redone......
>>>
>>>WTF ??? Sometimes I'm glad to to have ventured there. Imagine coming across this
>>>and not having some of the people responsible for it to slap...
>>>Fish slap might be to good for them, should walk over them with variations of "silly walk"...
>>
>>:-}
>>
>>I don't know why it's not created as a partial class but I assume they had a reason. And, to be fair, I was exagerating in stating that the DomainService *has* to be regenerated - if the changes to the entity model are small then, given a good knowledge of how the DomainService is constructed (which I don't really have as yet :-{), it's perfectly possible to modify the DomainService code by hand.....

>
>OK, so it's not generated as a partial class ... no reason that you can't create your own partial class to put additions into, right?

Don't both parts have to have the partial modifier? Although I suppose it would be possible to add the modifier to the generated class. Actually, looking at this a little closer, I see that all the 'metadata' classes are declared as partial and those are the ones that are most likely to need extending.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform