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."

http://blogs.msdn.com/charlie/archive/2007/11/11/partial-methods.aspx

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

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?
http://community.bartdesmet.net/blogs/bart/archive/2007/07/28/c-3-0-partial-methods-what-why-and-how.aspx
Coordinator
Jan 28, 2008 at 3:54 AM
Sowokie,

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.