Partial methods

Jan 25, 2008 at 12:18 PM
Would´t it be useful for us to use partial methods if we would like to add something to your classess without having the code overwritten in regeneration? Or am i misunderstanding these partial methods? Have you taken a look at them?

"... allowing users to modify auto-generated code without fearing that their changes will be overwritten if the code is regenerated."

BTW realy great to see your new stuff! When do you think you will release?
Jan 25, 2008 at 4:18 PM

We generate partial classes for all of your entities - for example. Order.cs and Generated.Order.cs. When you regenerate, Generated.Order.cs is overwritten, but Order.cs is not - it is only generated once. The quote you have is mis-worded a bit.

We have a meeting next week to discuss where we are at for the next release. from there, we will finish it up and test it. Then we'll release. My guess is mid February.
Jan 27, 2008 at 10:59 PM
Yes i know that you are using partial classes but how about partial METHODS? As far as i can tell its not totally the same thing. Or is it me that is totally misunderstanding this?

C# 3.0 partial methods - What, why and how?
Jan 28, 2008 at 3:54 AM

Sorry about that. I misread the message. We are currently intending to target the .NET 2.0 framework, so partial methods aren't an option yet. Coming up in a couple of versions, we plan to offer .NET 3.0 support, and we will re-evaluate where we could potentially use partial methods at that time.