Page 1 of 1

base class inheritence

Posted: Tue 27 Aug 2013 12:44
by edowney
I have a base class that all entities inherit from. It takes care of, among other things, the entities id field. How do I tell ED not worry about the id field? Right now I create a partial class that "sits" next to the ED generated class that includes the inheritance information, interfaces, etc. Can ED handle this without the additional partial class? Here's an example:

using System;
using System.Collections.Generic;
using Marinas.Infrastructure;

namespace Marinas.Domain
{
public partial class WebPage : BusinessBase<WebPage>, IWebPage, IAggregateRoot
{
partial void OnCreated()
{
DateEntered = DateTime.Now;
}

protected override void validate()
{
}
}

public interface IWebPage
{
}
}

Re: base class inheritence

Posted: Thu 29 Aug 2013 16:41
by Shalex
Please specify the ORM framework (Entity Framework/NHibernate/LinqConnect) you are working with.