I have a date time property in a linq to sql model and I want to override this in a partial class.
I tried changing the inheritance modifier and then overiding in the partial class, but it didn't work.
Is this sort of thing possible? I'm developing in 3.5 framework and its and ASP.NET MVC application.
My override is:
public override DateTime CommissionStart { get { return this.CommissionStart; } set { if (CommissionEnd > CommissionStart) { throw new ApplicationException("Date exception"); } else { this.CommissionStart = value; } } }