What is the substitution for partial property in C#?

VladChepesh

New Member
I have an application (mvc 3) where the code is autogenerated for the datacontext class. And I need to expand the functionality, so I created partial class with the same name. But I found that only "void methods" could be marked as partial, while I need kind of a partial property.So, is there any way to expand property's functionality in C#?Updated:Here is the code: \[code\] public Table<Post> Posts { get { // writing info into Trace file Log = Console.Out; var result = this.GetTable<Post>(); Log = new LogLinqToSql(); SubmitChanges(); return result; } }\[/code\]The thing is that if I make any change to the data model this code will disappear, so how can I move it to the "safer" place?
 
Back
Top